ZF-9686: Zend_Validate_File_MimeType $_finfo property doesn't exists when uploading multiple files

Issue Type: Bug Created: 2010-04-15T11:12:30.000+0000 Last Updated: 2010-04-15T14:10:59.000+0000 Status: Resolved Fix version(s): - 1.10.4 (28/Apr/10)

Reporter: Maxell (maxell) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments: - MimeType.php.patch


When you try to upload multiple files with Zend_Form_Element_File and use the MimeType validator, you get an exception that the $_finfo property doesn't exists. This is because after the first validation it is unset (r347 in Zend_Validate_File_MimeType).


Posted by Maxell (maxell) on 2010-04-15T11:15:11.000+0000

Added patch

Posted by Thomas Weidner (thomas) on 2010-04-15T14:09:48.000+0000

Implemented with r21860. This is not a bug but a improvement.

The provided patch is incomplete.

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-04-15T14:10:59.000+0000

How can it not be a bug?

Have you found an issue?

See the Overview section for more details.


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

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