Closed FireLizard closed 4 years ago
@FireLizard I had the same issue. In my case, the problem was that in php.ini file (which corresponds to php-fpm) the value of post_max_size
was too low and I was trying to upload a large file. When I changed post_max_size
to appropriate value the problem was solved (and I saw an error message "The file is too big" because the value of upload_max_filesize
was also too low).
So IMO this should be classified as an inappropriate error message or an inappropriate error handling.
There are also some related issues: https://github.com/sonata-project/SonataAdminBundle/issues/2479, https://github.com/sonata-project/SonataMediaBundle/issues/634
@OskarStark WDYT?
I am able to reproduce this issue when there are no form fields configured in admin class. A better error message to notify user to configure form fields makes sense here.
A better error message to notify user to configure form fields makes sense here.
Could you provide a PR @smtlab ?
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Environment
Sonata packages
Symfony packages
PHP version
Configuration
Subject
I want to upload an image/tiff image (via creation form by MediaAdmin) and want to see a validation error message. When I submit the form this error shows up: Impossible to access a key ("default") on a boolean variable ("").
Steps to reproduce
Just try to upload an image/tiff image (*.tif).
Expected results
I expect a flash message showing me the validation error message, e.g. not allowed extension and/or mime type.
Actual results