1Catalyst::Request::PartUDsaetra(C3o)ntributed Perl DocumCeanttaaltyisotn::Request::PartData(3)
2
3
4

NAME

6       Catalyst::Request::Upload - handles file upload requests
7

SYNOPSIS

9           my $data_part =
10
11       To specify where Catalyst should put the temporary files, set the
12       'uploadtmp' option in the Catalyst config. If unset, Catalyst will use
13       the system temp dir.
14
15           __PACKAGE__->config( uploadtmp => '/path/to/tmpdir' );
16
17       See also Catalyst.
18

DESCRIPTION

ATTRIBUTES

21       This class defines the following immutable attributes
22
23   raw_data
24       The raw data as returned via HTTP::Body.
25
26   name
27       The part name that gets extracted from the content-disposition header.
28
29   size
30       The raw byte count (over http) of the data.  This is not the same as
31       the character length
32
33   headers
34       An HTTP::Headers object that represents the submitted headers of the
35       POST.  This object will handle the following methods:
36
37       content_type
38
39       content_encoding
40
41       content_type_charset
42
43       These three methods are the same as methods described in HTTP::Headers.
44

METHODS

46   build_from_part_data
47       Factory method to build an object from part data returned by HTTP::Body
48
49   part_data_has_complex_headers
50       Returns true if there more than one header (indicates the part data is
51       complex and contains content type and encoding information.).
52

AUTHORS

54       Catalyst Contributors, see Catalyst.pm
55
57       This library is free software. You can redistribute it and/or modify it
58       under the same terms as Perl itself.
59
60
61
62perl v5.28.1                      2019-01-18    Catalyst::Request::PartData(3)
Impressum