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
"Oneup\UploaderBundle\Controller\AbstractController::dispatchPostEvents(): Argument #1 ($uploaded) must be of type Symfony\Component\HttpFoundation\File\File, Oneup\UploaderBundle\Uploader\File\FlysystemFile given, called in /var/www/html/vendor/oneup/uploader-bundle/src/Controller/AbstractController.php on line 128"
Q
A
Symfony
6.4.3
Oneup/UploaderBundle
5.0.0
Oneup/FlysystemBundle
4.11.2
Dropzone
6.0.0-beta.2
Summary
After setting up Oneup/UploaderBundle, Oneup/FlysystemBundle and Dropzone I tested out the upload and received an error.
It seems like Oneup\UploaderBundle\Uploader\Storage\FlysystemStorage->upload returns a Oneup\UploaderBundle\Uploader\File\FlysystemFile. And Oneup\UploaderBundle\Controller->dispatchPostEvents expects a Symfony\Component\HttpFoundation\File\File.
Either FlysystemFile needs to extend the Symfony File class. Or the parameter type in AbstractController->dispatchPostEvents should be changed to Oneup\UploaderBundle\Uploader\File\FileInterface.
How to reproduce
I believe it happens whenever you use Oneup/UploaderBundle v5.0.0 und try to upload a file.
The text was updated successfully, but these errors were encountered:
Bug Report
Uploading a file returns Error:
"Oneup\UploaderBundle\Controller\AbstractController::dispatchPostEvents(): Argument #1 ($uploaded) must be of type Symfony\Component\HttpFoundation\File\File, Oneup\UploaderBundle\Uploader\File\FlysystemFile given, called in /var/www/html/vendor/oneup/uploader-bundle/src/Controller/AbstractController.php on line 128"
Summary
After setting up Oneup/UploaderBundle, Oneup/FlysystemBundle and Dropzone I tested out the upload and received an error.
It seems like
Oneup\UploaderBundle\Uploader\Storage\FlysystemStorage->upload
returns aOneup\UploaderBundle\Uploader\File\FlysystemFile
. AndOneup\UploaderBundle\Controller->dispatchPostEvents
expects aSymfony\Component\HttpFoundation\File\File
.Either FlysystemFile needs to extend the Symfony File class. Or the parameter type in AbstractController->dispatchPostEvents should be changed to
Oneup\UploaderBundle\Uploader\File\FileInterface
.How to reproduce
I believe it happens whenever you use Oneup/UploaderBundle v5.0.0 und try to upload a file.
The text was updated successfully, but these errors were encountered: