Ubuntu Manpages

Plack::Request::Upload

handles file upload requests

  # $req is Plack::Request
  my $upload = $req->uploads->{field};
  $upload->size;
  $upload->path;
  $upload->content_type;
  $upload->basename;

Returns the size of Uploaded file.
Returns the path to the temporary file where uploaded file is saved.
Returns the content type of the uploaded file.
Returns the original filename in the client.
Returns basename for "filename".

Kazuhiro Osawa

Tatsuhiko Miyagawa

Plack::Request, Catalyst::Request::Upload