HTML::...:Upload(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::Widget::Element::Upload β€” the Upload Element, bestie πŸ’–

okay so this is HTML::Widget::Element::Upload, aka the Upload Element, straight out of the HTML::Widget family. It's a Perl module, it lives on your system as a 3pm page, and it is lowkey iconic. Let's get into it πŸŽ€


✨ NAME ✨

HTML::Widget::Element::Upload β€” Upload Element πŸ¦‹


🌸 SYNOPSIS 🌸

Here's the vibe, in code, verbatim, no cap:

my $e = $widget->element( 'Upload', 'foo' );
$e->comment('(Required)');
$e->label('Foo');
$e->accept('text/html');
$e->maxlength(1000);
$e->size(23);

look at her go πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

It's an Upload Element. That's the whole thing, she's serving simplicity ✨

the way that adding an Upload element automatically calls $widget->enctype('multipart/form-data') for you?? not me being obsessed with a module doing my homework for me 😭 bestie behaviour fr fr


πŸ‘‘ METHODS πŸ‘‘

πŸ’œ accept

Arguments: $type

A comma-separated list of media types, as per RFC2045. So like, you hand her the types she's allowed to accept and she's like "say less" πŸŽ€

πŸ’œ prepare

no arguments listed here, she just exists and does her thing ✨

πŸ’œ containerize

same energy β€” no arguments listed, just a method doing method things πŸ¦‹


🌈 SEE ALSO 🌈

  • HTML::Widget::Element β€” go say hi to the rest of the fam 🫢

🌸 AUTHOR 🌸

Sebastian Riedel, sri@oook.de πŸ’Œ


πŸ’– LICENSE πŸ’–

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. πŸŽ€

and that's the whole page, bestie 🫢 this lil doc shipped with perl v5.36.0 and was dated 2023-08-10 β€” slay, periodt πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from