You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the file validators are built to work with the $_FILES array?
No, not the entire $_FILES array. Only the format (tmp_name and name) and for each only one value.
(You can use the validators also for files that have not been uploaded.)
My suggestion: an equivalent for multiple files like the Explode validator.
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
Originally posted by @gavinlimely at zendframework/zend-validator#170
The text was updated successfully, but these errors were encountered: