HTML::FormFu::Constraint::File::Size - File Size Constraint
Contents
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.
perl v5.38.2 2024-04-10 HTML::FormFu::C...int::File::Size(3pm)
Description
Ensure that an uploaded file meets minimum or maximum size constraints.
License
This library is free software, you can redistribute it and/or modify it under the same terms as Perl
itself.
Methods
minimummin
Optional.
The minimum file size in bytes.
"min" is an alias for "minimum".
maximummax
Optional.
The maximum file size in bytes.
"max" is an alias for "maximum".
minimum_kilobytemin_kilobyte
Shortcut for "$constraint->minimum( $value * 1024 )".
"min_kilobyte" is an alias for "minimum_kilobyte".
maximum_kilobytemax_kilobyte
Shortcut for "$constraint->maximum( $value * 1024 )".
"max_kilobyte" is an alias for "maximum_kilobyte".
minimum_megabytemin_megabyte
Shortcut for "$constraint->minimum( $value * 1_048_576 )".
"min_megabyte" is an alias for "minimum_megabyte".
maximum_megabytemax_megabyte
Shortcut for "$constraint->maximum( $value * 1_048_576 )".
"max_megabyte" is an alias for "maximum_megabyte".
Name
HTML::FormFu::Constraint::File::Size - File Size Constraint
See Also
Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
HTML::FormFu
Version
version 2.07
