HTML::...MaxSize(3pm)

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

πŸ’– HTML::...MaxSize(3pm) πŸ’–

okay bestie, welcome to the HTML::...MaxSize page β€” it's part of the User Contributed Perl Documentation, it lives in section 3pm, and it's literally here to make sure nobody uploads a whole 4K movie when you asked for a profile pic. πŸŽ€


✨ NAME ✨

HTML::FormFu::Constraint::File::MaxSize β€” Maximum File Size Constraint πŸ‘‘


🌸 VERSION 🌸

version 2.07 β€” yes queen, we're on 2.07, write it down. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

So what does it do? It makes sure that an uploaded file meets maximum size constraints. That's the whole vibe. If it's too chonky, it does not slay, it does not pass. πŸ’€

It overrides localize_args in HTML::FormFu::Constraint, so that the value of maximum gets passed as an argument to localize. iykyk β€” that's just how it feeds the number into the localisation. ✨

🚨 heads up bestie: this constraint doesn't honour the not() value. Not a drill, not a bug you can argue with β€” it just doesn't. periodt.

🫢 METHODS 🫢

πŸ’– maximum

πŸ’– max

The maximum file size, measured in bytes. πŸ“

max is an alias for maximum β€” same energy, shorter name, pick whichever one fits your mood. πŸ’β™€οΈ


🌈 SEE ALSO 🌈

It's a sub-class of, and inherits methods from, HTML::FormFu::Constraint::File::Size and HTML::FormFu::Constraint. πŸ’ž

Also: HTML::FormFu β€” the whole mothership, go say hi. πŸ›Έ


πŸ‘‘ 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, we love a double feature) πŸ’œ

Carl Franks <cpan@fireartist.com>


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. 🫢


okay that's the whole page, no notes, you ate. πŸ’… and for the cute sign-off: this was rendered by perl v5.28.1 on 2019-01-12, under the title HTML::...MaxSize(3pm) β€” iconic, historic, bye bestie! πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from