CGI-Upload
view release on metacpan or search on metacpan
file_name('field')
This method returns the file name of the file uploaded through the
form input field named 'field' - This file name does not reflect the
local temporary filename of the uploaded file, but that for the file
supplied by the client web browser.
file_type('field')
This method returns the file type of the file uploaded as specified
by the filename extension - Please note that this does not
necessarily reflect the nature of the file uploaded, but allows CGI
scripts to perform cursory validation of the file type of the
uploaded file.
mime_magic('/path/to/mime.types')
This method sets and/or returns the external magic mime types file
to be used for the identification of files via the mime_type method.
By default, MIME identification is based upon internal mime types
defined within the File::MMagic module.
See File::MMagic for further details.
lib/CGI/Upload.pm view on Meta::CPAN
This method returns the file name of the file uploaded through the form input
field named 'field' - This file name does not reflect the local temporary
filename of the uploaded file, but that for the file supplied by the client web
browser.
=item B<file_type('field')>
This method returns the file type of the file uploaded as specified by the
filename extension - Please note that this does not necessarily reflect the
nature of the file uploaded, but allows CGI scripts to perform cursory
validation of the file type of the uploaded file.
=item B<mime_magic('/path/to/mime.types')>
This method sets and/or returns the external magic mime types file to be used
for the identification of files via the B<mime_type> method. By default, MIME
identification is based upon internal mime types defined within the
B<File::MMagic> module.
See L<File::MMagic> for further details.
( run in 0.247 second using v1.01-cache-2.11-cpan-4d50c553e7e )