DOKK / manpages / debian 12 / libplack-perl / Plack::Request::Upload.3pm.en
Plack::Request::Upload(3pm) User Contributed Perl Documentation Plack::Request::Upload(3pm)

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

2022-09-06 perl v5.34.0