logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::FormFu::Constraint::File::Size - File Size Constraint

Author

       Carl Franks <cpan@fireartist.com>

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

See Also