-
-
18 Jul 2005 14:43:30 UTC
- Distribution: Catalyst-Plugin-Upload-MIME
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (593 / 1 / 0)
- Kwalitee
Bus factor: 11- 75.00% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (2.19KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Christian Hansen, C
- Dependencies
- Catalyst
- File::MimeInfo
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Plugin::Upload::MIME - MIME type for uploads
SYNOPSIS
use Catalyst qw[Upload::MIME]; if ( my $upload = $c->request->upload('field') ) { print $upload->mimetype; print $upload->extension; }
DESCRIPTION
Extends
Catalyst::Request::Upload
withMIME type
magic.METHODS
- extension
-
Returns file extension for
mimetype
. - mimetype
-
Returns
MIME type
for tempname using magic.
SEE ALSO
File::MimeInfo::Magic, Catalyst::Request, Catalyst::Request::Upload.
AUTHOR
Christian Hansen,
ch@ngmedia.com
LICENSE
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
Module Install Instructions
To install Catalyst::Plugin::Upload::MIME, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Plugin::Upload::MIME
perl -MCPAN -e shell install Catalyst::Plugin::Upload::MIME
For more information on module installation, please visit the detailed CPAN module installation guide.