Closed bfolliot closed 5 years ago
I workaround-ed this with zendframework/zend-psr7bridge
like this:
$zendRequest = \Zend\Psr7Bridge\Psr7ServerRequest::toZend($request);
$inputFilter->setData($zendRequest->getFiles());
...
We have similar problem here, this problem forces us to use $_FILES array instead of $request->getUploadedFiles()
Fixed and released with version 2.9.0. A code example can be found in the documentation: https://docs.zendframework.com/zend-inputfilter/file-input/#psr-7-support
Hello.
Zend\InputFilter\FileInput does not accept an implementation of Psr\Http\Message\UploadedFileInterface if the input is required, for exemple, i have this form with InputFilterProviderInterface :
And in an Expressive middleware :