CGI::Lite::Request::Upload - Upload objects for CGI::Lite
$upload = CGI::Lite::Request::Upload->new;
# copy and hard link
$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.
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.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.