Cataly...artData(3pm)
β¨ NAME β¨
Cataly...artData (3pm) β bestie, this page is all about Catalyst::Request::Upload, and what it does is handle file upload requests ππ
πΈ SYNOPSIS πΈ
okay so the original page gives us exactly this, and I'm quoting it fr fr:
my $data_part =
that's it. that's the whole line. it justβ¦ stops π the manpage said "my $data_part =" and then dipped. iconic of it, honestly. anyway!
To tell Catalyst where it should stash the temporary files, you set the 'uploadtmp' option in the Catalyst config. If you don't set it, Catalyst is just gonna use the system temp dir, no cap.
__PACKAGE__->config( uploadtmp => '/path/to/tmpdir' );
See also Catalyst. π¦
π DESCRIPTION π
bestie. queen. love. this section is literally empty in the original. nothing in it. zero. zilch. not a single word. we vibe check it and we move on πβ¨
π ATTRIBUTES π
This class defines the following immutable attributes β immutable as in they are not mutable, they do not change, periodt π
π raw_data
The raw data, exactly as returned via HTTP::Body.
π name
The part name, which gets extracted from the content-disposition header.
π¦ size
The raw byte count (over http) of the data. This is NOT the same as the character length β not me stressing this, it's in the original, and it matters π
π headers
An HTTP::Headers object that represents the submitted headers of the POST. This object will handle the following methods:
content_typecontent_encodingcontent_type_charset
These three methods are the same as the methods described in HTTP::Headers. slay π«Ά
β METHODS β
π§ build_from_part_data
A factory method β it builds an object from the part data returned by HTTP::Body. factory method energy, she constructs things β¨
π
part_data_has_complex_headers
Returns true if there's more than one header (which indicates the part data is complex and contains content type and encoding information). π
π AUTHORS π
Catalyst Contributors, see Catalyst.pm β the whole squad, the committee, the group chat π«Ά
π COPYRIGHT π
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. free as in free, bestie π
and that's the page!! this was written up for perl v5.40.0 and dated 2024-11-15, under the Cataly...artData (3pm) manual, contributed by the lovely folks in User Contributed Perl Documentation. mwah, go upload some files, you got this π πΈβ¨
π¦ where this page comes from
- debian trixie: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms