PEF::Front::File - File class for uploaded files
This class is used to handle uploaded files.
This is constructor. Following arguments are supported:
Name of file.
Content-Type from HTTP headers.
Content-Length from HTTP headers.
It creates file in some subdirectory in cfg_upload_dir.
Returns Content-Type.
Returns size of file. It returns actual size when upload is finished.
Returns file handle.
Returns filename.
This function is called when upload is finished.
Returns subdirectory where file is located.
Reads the whole file in variable and returns it.
Appends file content.
This module was written and is maintained by Anton Petrusevich.
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.
To install PEF::Front, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PEF::Front
CPAN shell
perl -MCPAN -e shell install PEF::Front
For more information on module installation, please visit the detailed CPAN module installation guide.