NAME

PEF::Front::File - File class for uploaded files

DESCRIPTION

This class is used to handle uploaded files.

FUNCTIONS

new(%args)

This is constructor. Following arguments are supported:

filename

Name of file.

content_type

Content-Type from HTTP headers.

size

Content-Length from HTTP headers.

It creates file in some subdirectory in cfg_upload_dir.

content_type

Returns Content-Type.

size

Returns size of file. It returns actual size when upload is finished.

fh

Returns file handle.

filename

Returns filename.

finish

This function is called when upload is finished.

upload_path

Returns subdirectory where file is located.

value

Reads the whole file in variable and returns it.

append

Appends file content.

AUTHOR

This module was written and is maintained by Anton Petrusevich.

Copyright and License

Copyright (c) 2016 Anton Petrusevich. Some Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.