Issues

ZF-11484: setting enableHeaderCheck doesn't read the file type passed by the browser

Issue Type: Bug Created: 2011-06-16T01:41:23.000+0000 Last Updated: 2011-06-16T01:41:23.000+0000 Status: Open Fix version(s): Reporter: Akeem Philbert (kanundrum) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments:

Description

If fileinfo is NOT enabled and enableHeaderCheck is set to true on the isImage validator the "type" in the $_FILES array is NOT used. Things go wrong because in Zend_File_Transfer_Adapter_Abstract the _detectMimeType function defaults to "application/octet-stream" if fileinfo isn't found which is used to set the type in the adapters internal files hash. Maybe the validator should use the $_FILES array directly or the _dectectMimeType should consider the headerCheck flag and fall back on using the "type" key.

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts