HTML::...::Size(3pm)
π HTML::FormFu::Constraint::File::Size π
okay bestie, welcome to the manual page for HTML::FormFu::Constraint::File::Size, a little Perl module that's out here doing the absolute most so your uploads don't get out of pocket β¨
πΈ VERSION πΈ
version 2.07 β yes queen, she's got a version number and she's proud of it π
π¦ DESCRIPTION π¦
So here's the vibe: this thing makes sure an uploaded file meets your minimum or maximum size constraints. That's it. That's the whole job. And she does it flawlessly π«Ά
Think of it like a bouncer for your file uploads. Too smol? Not on her watch. Too chonky? Also not on her watch. She's just checking the size and giving you a yes or a no, no cap π
β¨ METHODS β¨
π minimum
π min
Optional, so you don't have to use her, but like⦠why wouldn't you?
This sets the minimum file size in bytes.
min is an alias for minimum β same energy, shorter name, pick whichever one speaks to your soul π
π maximum
π max
Optional too, she's chill like that.
This sets the maximum file size in bytes.
max is an alias for maximum β literally the same thing, just shorter. iykyk π
π minimum_kilobyte
π min_kilobyte
It's giving shortcut energy β¨
This is a shortcut for:
$constraint->minimum( $value * 1024 )
So instead of doing the math yourself, you just hand her a kilobyte number and she handles the rest. Obsessed.
min_kilobyte is an alias for minimum_kilobyte. Same deal, cuter name πΈ
π maximum_kilobyte
π max_kilobyte
Another shortcut, another slay π
Shortcut for:
$constraint->maximum( $value * 1024 )
max_kilobyte is an alias for maximum_kilobyte. Periodt.
π§ minimum_megabyte
π§ min_megabyte
Now we're talking big numbers, main character energy only π
Shortcut for:
$constraint->minimum( $value * 1_048_576 )
min_megabyte is an alias for minimum_megabyte β go off, bestie π¦
π§ maximum_megabyte
π§ max_megabyte
The final form of the shortcut family, and she ate π
Shortcut for:
$constraint->maximum( $value * 1_048_576 )
max_megabyte is an alias for maximum_megabyte. No notes, flawless π
π SEE ALSO π
- Is a sub-class of, and inherits methods from
HTML::FormFu::Constraintβ so all that inherited goodness is yours too, bestie π«Ά HTML::FormFuβ the whole parent situation, go read up π
π AUTHOR π
Carl Franks, cfranks@cpan.org β the icon who made this happen, we stan π
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. Free as in freedom, free as in slay π
π AUTHOR π
Carl Franks <cpan@fireartist.com> β yes, the same legend, showing up again because he contains multitudes π
π 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.
π«Ά quick vibe check: this page was rendered fromperl v5.28.1and dated2019-01-12. That's the whole footer, babe β thanks for reading, you're doing amazing, mwah πβ¨π
π¦ 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