HTML::...t::File(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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::CGI
  • HTML::FormFu::QueryType::Catalyst
  • HTML::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::Input
  • HTML::FormFu::Role::Element::Field
  • HTML::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 πŸ‘‘

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