Closed icetee closed 5 years ago
@icetee we already have support for validating PSR-7 uploaded files as of version 2.11.0; the support is even documented.
@weierophinney
But this support will not work for (file) validators like Size
, MimeType
and so on.
I pushed the changes.
@weierophinney I have http-message
package composer show -i | grep http-message
.
Maybe related build failed - https://github.com/zendframework/zend-validator/issues/257
@icetee Yes, and I just pushed a fix for that to develop. :smile:
This commit allows validation files with
$request->getUploadedFiles()
.But I got stuck in testing. I want to be able to use a
$upload->getStream()->getMetadata('uri')
and return example/tmp/abcd
.