Scroll to navigation

Plack::Request::Upload(3pm) User Contributed Perl Documentation Plack::Request::Upload(3pm)

NAME

Plack::Request::Upload - handles file upload requests

SYNOPSIS

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

METHODS

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".

AUTHORS

Kazuhiro Osawa

Tatsuhiko Miyagawa

SEE ALSO

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

2024-01-20 perl v5.38.2