CGI::T...::File(3pm)

πŸ“¦
version 1.111 Β· 2 versions
  • 1.111 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.111 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– CGI::Test::Form::Widget::Input::File β€” it's giving "file upload control" ✨

ok bestie so real quick, the manual name is CGI::T...::File(3pm) and it lives in the User Contributed Perl Documentation, and today we're learning about a file upload control. slay. let's go πŸŽ€


🌸 NAME 🌸

CGI::Test::Form::Widget::Input::File β€” a file upload control, no cap πŸ’…


✨ SYNOPSIS ✨

like, it literally inherits from CGI::Test::Form::Widget::Input, and $form is a CGI::Test::Form. here's the whole vibe:

# Inherits from CGI::Test::Form::Widget::Input
# $form is a CGI::Test::Form

my $upload = $form->input_by_name("upload");
$upload->replace("/tmp/file");

see how easy that was? iconic. 🌟


πŸ¦‹ DESCRIPTION πŸ¦‹

so this class models a file upload control. picture it: it's a text field where you type in a file name, and right next to it there's a lil "browse" control button that lets the user pick a file through a GUI... πŸ–±οΈβœ¨

not me getting emotional over a text field with a button next to it 😭

and the important part, bestie: the interface is the same as the one described in CGI::Test::Form::Widget::Input::Text_Field. so if you already know that one, you already know this one. periodt. πŸ’œ


πŸ‘‘ AUTHORS πŸ‘‘

ok so the credit roll, and we're giving everyone their flowers because they earned them 🌸

  • The original author is Raphael Manfredi.
  • Steven Hilton was long time maintainer of this module.
  • Current maintainer is Alexander Tokarev <tokarev@cpan.org>.

maintainer handoffs are such main character energy honestly 🫢


🌈 SEE ALSO 🌈

go check out CGI::Test::Form::Widget::Input(3). that's the one. iykyk πŸ’…


and that's the whole page, bestie!! this was perl v5.34.0, dated 2022-06-10, and it's the CGI::T...::File(3pm) manual from the User Contributed Perl Documentation. thank you for coming to my ted talk, go upload a file, mwah πŸ’–βœ¨πŸŽ€