1HTML::FormFu::ConstrainUts:e:rFiCloen:t:rMiIbMuEt(e3d)PHeTrMlL:D:oFcourmmeFnut:a:tCioonnstraint::File::MIME(3)
2
3
4

NAME

6       HTML::FormFu::Constraint::File::MIME - MIME Type Constraint
7

VERSION

9       version 2.07
10

DESCRIPTION

12       Constraint an uploaded file's MIME-type (Content-Type).
13
14       "types" is checked before "regex".
15

METHODS

17   types
18       Arguments: $mime_type
19
20       Arguments: \@mime_types
21
22       Optional.
23
24       Accepts a single MIME-type or an arrayref of MIME-types. Each is
25       checked against the uploaded file's MIME-type (as given by the
26       browser), and the constraint passes if any one of the given types
27       matches.
28
29   regex
30       Arguments: $regex
31
32       Optional.
33
34       Accepts a string to be interpreted as a regex, and is checked against
35       the uploaded files's MIME-type (as given by the browser).
36
37       The regex uses the "/x" flag, so that whitespace in the given string is
38       ignored.
39

SEE ALSO

41       Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
42
43       HTML::FormFu
44

AUTHOR

46       Carl Franks, "cfranks@cpan.org"
47

LICENSE

49       This library is free software, you can redistribute it and/or modify it
50       under the same terms as Perl itself.
51

AUTHOR

53       Carl Franks <cpan@fireartist.com>
54
56       This software is copyright (c) 2018 by Carl Franks.
57
58       This is free software; you can redistribute it and/or modify it under
59       the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.34.0                      2021-0H7T-M2L2::FormFu::Constraint::File::MIME(3)
Impressum