NAME
Egg::Request::Upload::CGI - File upload by CGI::Upload.
DESCRIPTION
CGI::Upload It is a module to use the file upload function.
This module is set up by Egg::Plugin::Request::Upload.
METHODS
upload ([PARAM_NAME])
The Egg::Request::Upload::CGI::handler object is returned.
Undefined returns when the 'upload' object cannot be acquired in PARAM_NAME.
HANDLER METHODS
This class has succeeded to Egg::Request::Upload.
filename
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;
tempname
The work passing of the up-loading file is temporarily returned.
my $tmpfile= $upload->tempname;
size
The size of the upload file is returned.
type
The contents type of the upload file is returned.
info
Information on the upload file is returned.
my $type = $upload->info->{'Content-Type'};
SEE ALSO
Egg::Release, Egg::Request, Egg::Request::Upload, Egg::Plugin::Request::Upload, CGI::Upload,
AUTHOR
Masatoshi Mizuno <lushe@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
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.