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 the CGI::Lite::Request manpage, and shouldn't be instantiated directly.
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 the File::Type manpage)
copies the file to the destination
returns an the IO::File manpage 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>
the CGI::Lite manpage, the File::Type manpage, the CGI::Lite::Request manpage, the IO::File manpage
This library is free software and may be used under the same terms as Perl itself