GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTML::FORMFU::CONSTRAINT::FILE::MIME (3)

.ds Aq ’

NAME

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

CONTENTS

DESCRIPTION

Constraint an uploaded file’s MIME-type (Content-Type).

types is checked before regex.

METHODS

    types

Arguments: $mime_type

Arguments: \@mime_types

Optional.

Accepts a single MIME-type or an arrayref of MIME-types. Each is checked against the uploaded file’s MIME-type (as given by the browser), and the constraint passes if any one of the given types matches.

    regex

Arguments: $regex

Optional.

Accepts a string to be interpreted as a regex, and is checked against the uploaded files’s MIME-type (as given by the browser).

The regex uses the /x flag, so that whitespace in the given string is ignored.

SEE ALSO

Is a sub-class of, and inherits methods from HTML::FormFu::Constraint

HTML::FormFu

AUTHOR

Carl Franks, cfranks@cpan.org

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTML::FORMFU::CONSTRAINT::FILE::MIME (3) 2014-05-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.