Catalyst::Plugin::Upload::MIME - MIME type for uploads
use Catalyst qw[Upload::MIME]; if ( my $upload = $c->request->upload('field') ) { print $upload->mimetype; print $upload->extension; }
Extends Catalyst::Request::Upload with MIME type magic.
Catalyst::Request::Upload
MIME type
Returns file extension for mimetype.
mimetype
Returns MIME type for tempname using magic.
File::MimeInfo::Magic, Catalyst::Request, Catalyst::Request::Upload.
Christian Hansen, ch@ngmedia.com
ch@ngmedia.com
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
To install Catalyst::Plugin::Upload::MIME, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Upload::MIME
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Upload::MIME
For more information on module installation, please visit the detailed CPAN module installation guide.