Cataly...artData(3pm)

πŸ“¦
version 5.90132 Β· 6 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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_type
  • content_encoding
  • content_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 🫢


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