about summary refs log tree commit diff
path: root/app/controllers/api/v1/blocks_controller.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-04-25 12:27:29 +0200
committerGitHub <noreply@github.com>2020-04-25 12:27:29 +0200
commitbe637146f310d7ec3a49d01e850959514e9e4964 (patch)
treedd872d2a9ea527f37add1ee8dbe16c3bb26d2b72 /app/controllers/api/v1/blocks_controller.rb
parentc955f98d36868e85b0f1939a3a1c58c00babd4e8 (diff)
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.
Diffstat (limited to 'app/controllers/api/v1/blocks_controller.rb')
0 files changed, 0 insertions, 0 deletions