Open maxme opened 4 years ago
This came up in an app review:
For a very brief period, I was able to upload photos. But you broke it again in one of the recent updates. I honestly don’t do much worth WordPress except make blog posts with pics. But now pics won’t upload.
Suggestion: Provide more detailed error messages when uploads fail.
1-star app review by Jentropy – Aug 12, 2020 | WPiOS 15.3
(internal reference: app-store-reviewId=6311920580)
Expected behavior
In case of an error during media upload, we should show the exact error to help the user take a decision.
The list of errors are defined here in Calypso. Most interesting are:
Note that these error codes are actually stored in the message field. Here is an sample response we get from the https://public-api.wordpress.com/rest/v1.1/sites/{SITE_ID}/media/new/ API endpoint in case of an upload on a quota limited site:
.split("|")
), make the error code directly accessible by the UI.Actual behavior
We show a generic error in the editor and in the media library:
More details on paaHJt-17e-p2
WPAndroid related ticket: https://github.com/wordpress-mobile/WordPress-Android/issues/12325