]> cat aescling's git repositories - mastodon.git/commit
Fix uninformative error message when uploading unsupported image files (#13540)
authorThibG <thib@sitedethib.com>
Sat, 25 Apr 2020 10:27:29 +0000 (12:27 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2020 10:27:29 +0000 (12:27 +0200)
commitbe637146f310d7ec3a49d01e850959514e9e4964
treedd872d2a9ea527f37add1ee8dbe16c3bb26d2b72
parentc955f98d36868e85b0f1939a3a1c58c00babd4e8
Fix uninformative error message when uploading unsupported image files (#13540)

Attempting to upload image files that the browser is unable to load results
in “Oops! An unexpected error occurred.”

This commit changes the error handling so that an unprocessable image results
in the file being sent anyway, which might cover a few corner cases, and
provide a slightly better error message.
app/javascript/mastodon/utils/resize_image.js