CGI::Lite::Request::Upload - Upload objects for CGI::Lite
$upload = CGI::Lite::Request::Upload->new; # getters $upload->filename; $upload->tempname; $upload->size; $upload->type; # copy and hard link $upload->copy_to('/target/path'); $upload->link_to('/target/path'); $fh = $upload->fh; $content = $upload->slurp;
These objects are created automatically during the parse of the incoming request by CGI::Lite::Request, and shouldn't be instantiated directly.
parse
simple constructor
returns the filename of the uploaded file
returns the name of the temporary file to which the content has been spooled
returns the size of the uploaded file
returns the MIME type of the file (guessed with File::Type)
copies the file to the destination
returns an IO::File object with the temporary file opened read only
links the temporary file to the destination
reads and returns the contents of the uploaded file
Richard Hundt <richard NO SPAM AT protea-systems.com>
CGI::Lite, File::Type, CGI::Lite::Request, IO::File
This library is free software and may be used under the same terms as Perl itself
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install CGI::Lite::Request, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Lite::Request
CPAN shell
perl -MCPAN -e shell install CGI::Lite::Request
For more information on module installation, please visit the detailed CPAN module installation guide.