Plack::Request::Upload(3pm)

Plack::Request::Upload3pm

Handles file upload requests

Usage

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

Methods

size

Returns the size of Uploaded file.

path

Returns the path to the temporary file where uploaded file is saved.

content_type

Returns the content type of the uploaded file.

filename

Returns the original filename in the client.

basename

Returns basename for "filename".

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Authors

Kazuhiro Osawa

Tatsuhiko Miyagawa

From libplack-perl 1.0051-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.