[line 46]
Rule checking that uploaded file is of the correct MIME type
The Rule needs one configuration parameter for its work: a string with a desired MIME type or array of such strings. This parameter can be passed either to the Rule constructor as local configuration or to HTML_QuickForm2_Factory::registerRule() as global one. As usual, global configuration overrides local one.
The Rule considers missing file uploads (UPLOAD_ERR_NO_FILE) valid.