-
Notifications
You must be signed in to change notification settings - Fork 136
MimeType validator doesn't work for multiple files. #170
Comments
A validator validates always one value. But you can combine the |
Ok thank you for the quick response. It does seem like a work around though, seen as the file validators are built to work with the $_FILES array? |
No, not the entire My suggestion: an equivalent for multiple files like the |
This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at laminas/laminas-validator#19. |
Hi,
The IsImage validator doesn't work with html5 file inputs that have the multiple attribute assigned.
It validates the first file file, then gives the error :
Warning: finfo_file(): 557 is not a valid file_info resource in vendor/zendframework/zend-validator/src/File/MimeType.php on line 387
Warning: finfo_close(): 557 is not a valid file_info resource in vendor/zendframework/zend-validator/src/File/MimeType.php on line 388
Ideally, the behaviour is that it won't pass validation unless all of the files are images?
Thanks
The text was updated successfully, but these errors were encountered: