Display error when image fails to upload and server returns error message #7137
Labels
[Feature] Media
Anything that impacts the experience of managing media
[Type] Bug
An existing feature does not function as intended
Milestone
In the WordPress Media Library, a failed image upload will display the specific error returned by the server:
However, Gutenberg displays a generic "Error while uploading" message:
It would be better to display the specific error message.
This scenario can be reproduced with the following code snippet:
Tested with Gutenberg 3.0.
The text was updated successfully, but these errors were encountered: