Jifty::Web::FileUpload - Describes an HTTP file upload
Currently this module is very much geared towards the use case of the current request offering a file upload, and inspecting CGI to produce metadata.
Refactorings to eliminate these assumptions are very welcome.
Creates a new file upload object. The possible arguments in the PARAMHASH are:
PARAMHASH
The filehandle to read the content from. If this is not an Fh object produced by CGI, then content_type is mandatory and you probably want to set filename yourself.
content_type
filename
The upload's content. Will be intuited if possible.
The upload's filename as given by the client (i.e. ¬ on disk). Will be intuited if possible.
The content type as reported by the client.
Lazily slurps in the filehandle's content.
Convenience method, since the other bits can be gleaned from the Fh object.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.