Mimetype-Validation of Multiple Files broken
Closed this issue · 1 comments
BlckStar commented
This currently Breaks Mimetype-Validation of Multiple Files because it closes the finfo-handle after the first validation.
At the second Validation the finfo-handle is closed and does not reopen at the setMagicFile-Function.
werc commented
Agree with @BlckStar. When "multiple" input has one file validation is ok. But when sending more than one files there is a warning message:
WARN (4): finfo_file(): supplied resource is not a valid file_info resource {"errno":2,"file":"....\\vendor\\zendframework\\zend-validator\\src\\File\\MimeType.php","line":387}
Before 2.9.1 worked fine.