Maypole::Plugin::Upload - Handle file uploads in Maypole


Maypole-Plugin-Upload documentation  | view source Contained in the Maypole-Plugin-Upload distribution.

Index


NAME

Top

Maypole::Plugin::Upload - Handle file uploads in Maypole

SYNOPSIS

Top

  my %upload = $r->upload('file');
  return unless $upload{mimetype} =~ m|^image/|;

DESCRIPTION

Top

This plugin adds a upload method to your Maypole request object to allow you to access file uploads in a platform neutral way.

METHODS

Top

upload

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.

AUTHOR

Top

Marcus Ramberg marcus@thefeed.no

LICENSE

Top

You may distribute this code under the same terms as Perl itself.


Maypole-Plugin-Upload documentation  | view source Contained in the Maypole-Plugin-Upload distribution.