HTML::...t::File(3pm)
π HTML::FormFu::Element::File β the tea β
okay bestie, so this is a page from the User Contributed Perl Documentation set, and it's the manual for HTML::FormFu::Element::File (section 3pm, so it's a Perl module page, iykyk). It's all about a file upload form field and honestly? it's giving practical. let's get into it β¨
πΈ NAME πΈ
HTML::FormFu::Element::File β the file upload form field. yes, that's literally it. that's the whole job. a field where you upload a file. iconic behaviour, no notes π
π VERSION π
version 2.07
β¨ SYNOPSIS β¨
here's the vibe in YAML form, a whole config block, look at her go:
---
elements:
type: File
name: photo
then in your Perl, you grab the param like so:
my $photo = $form->param('photo');
my $blob = $photo->slurp;
and boom, $photo is your uploaded file object and $blob is the actual bytes. slay π«Ά
π¦ DESCRIPTION π¦
it's a file upload form field. that's the whole thing. it does one job and it does it well, periodt.
but here's the important part β the behaviour depends on the query_type you're using, so go read the docs for whichever one is yours, fr fr:
HTML::FormFu::QueryType::CGIHTML::FormFu::QueryType::CatalystHTML::FormFu::QueryType::CGI::Simple
π METHODS π
soβ¦ there are no methods documented here. nothing. not a single one. the section exists and it is empty, and honestly that's a mood. whatever methods this thing has, it's inheriting them from its parent classes (see below π), so go look there bestie π
π SEE ALSO π
this one is a sub-class, and it inherits methods from all of these:
HTML::FormFu::Role::Element::InputHTML::FormFu::Role::Element::FieldHTML::FormFu::Element
also go check out:
HTML::FormFu
π AUTHOR π
Carl Franks, cfranks@cpan.org
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHOR (yes, again) π
Carl Franks <cpan@fireartist.com>
not a typo bestie, there's genuinely two AUTHOR sections on this page and both of them are Carl. king behaviour honestly π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Carl Franks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, you ate it π this doc came to you courtesy of perl v5.28.1, dated 2019-01-12, and the manual name on the tin is HTML::...t::File(3pm) β go forth and upload files, bestie π§πΈβ¨
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-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