Maypole::Plugin::Upload - Handle file uploads in Maypole
my %upload = $r->upload('file'); return unless $upload{mimetype} =~ m|^image/|;
This plugin adds a upload method to your Maypole request object to allow you to access file uploads in a platform neutral way.
This method takes the form name as parameter, and returns either a hash with 'content', 'filename' and 'mimetype', or the content if used in scalar context.
Marcus Ramberg marcus@thefeed.no
marcus@thefeed.no
You may distribute this code under the same terms as Perl itself.
To install Maypole::Plugin::Upload, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Maypole::Plugin::Upload
CPAN shell
perl -MCPAN -e shell install Maypole::Plugin::Upload
For more information on module installation, please visit the detailed CPAN module installation guide.