1HTML::FormFu::ConstrainUts:e:rFiCloen(t3r)ibuted Perl DoHcTuMmLe:n:tFaotrimoFnu::Constraint::File(3)
2
3
4
6 HTML::FormFu::Constraint::File - File Upload Constraint
7
9 Ensure the submitted value is a file upload.
10
11 This Constraint is not needed if you use any of the "File::*"
12 Constraints, as they all make the same check as this Constraint does.
13
15 This can only verify that your CGI backend (CGI, Catalyst, CGI::Simple)
16 thinks it was a file upload. If the user submits a filename which
17 doesn't exist on their system, you will probably get a valid
18 HTML::FormFu::Upload object, with a valid filehandle, but no Content-
19 Length. This Constraint would still see this as a valid uploaded file -
20 if you want to ensure that you get a file with content, instead use
21 HTML::FormFu::Constraint::File::Size with min set to 1.
22
24 Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
25
26 HTML::FormFu
27
29 Carl Franks, "cfranks@cpan.org"
30
32 This library is free software, you can redistribute it and/or modify it
33 under the same terms as Perl itself.
34
35
36
37perl v5.12.1 2010-05-16 HTML::FormFu::Constraint::File(3)