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

DESCRIPTION

9       Constraint an uploaded file's MIME-type (Content-Type).
10
11       "types" is checked before "regex".
12

METHODS

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

SEE ALSO

38       Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
39
40       HTML::FormFu
41

AUTHOR

43       Carl Franks, "cfranks@cpan.org"
44

LICENSE

46       This library is free software, you can redistribute it and/or modify it
47       under the same terms as Perl itself.
48
49
50
51perl v5.12.1                      2010-0H5T-M1L6::FormFu::Constraint::File::MIME(3)
Impressum