1Plack::Request::Upload(U3s)er Contributed Perl DocumentatPiloanck::Request::Upload(3)
2
3
4
6 Plack::Request::Upload - handles file upload requests
7
9 # $req is Plack::Request
10 my $upload = $req->uploads->{field};
11
12 $upload->size;
13 $upload->path;
14 $upload->content_type;
15 $upload->basename;
16
18 size
19 Returns the size of Uploaded file.
20
21 path
22 Returns the path to the temporary file where uploaded file is
23 saved.
24
25 content_type
26 Returns the content type of the uploaded file.
27
28 filename
29 Returns the original filename in the client.
30
31 basename
32 Returns basename for "filename".
33
35 Kazuhiro Osawa
36
37 Tatsuhiko Miyagawa
38
40 Plack::Request, Catalyst::Request::Upload
41
42
43
44perl v5.32.1 2021-01-27 Plack::Request::Upload(3)