Egg::Request::Upload::CGI - File upload by CGI::Upload.
CGI::Upload It is a module to use the file upload function.
This module is set up by Egg::Plugin::Request::Upload.
The Egg::Request::Upload::CGI::handler object is returned.
Undefined returns when the 'upload' object cannot be acquired in PARAM_NAME.
This class has succeeded to Egg::Request::Upload.
The file name of the up-loading file is returned.
There seems to be a thing that the file name including the directory of the upload environment of the client is returned though it might be the one by the environment.
When only the file name is acquired, it is good to use 'catfilename' method of Egg::Request::Upload.
my $filename= $upload->filename;
The work passing of the up-loading file is temporarily returned.
my $tmpfile= $upload->tempname;
The size of the upload file is returned.
The contents type of the upload file is returned.
Information on the upload file is returned.
my $type = $upload->info->{'Content-Type'};
Egg::Release, Egg::Request, Egg::Request::Upload, Egg::Plugin::Request::Upload, CGI::Upload,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.