---
name: "Plack::Request::Upload"
section: "3pm"
platform: "linux"
package: "libplack-perl"
version: "1.0051-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Plack::Request::Upload"
---

# Plack::Request::Upload(3pm)

handles file upload requests

## 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

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

## AUTHORS

Kazuhiro Osawa

Tatsuhiko Miyagawa

## SEE ALSO

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