Medialibrary doesn't handles file conversion errors gracefully #3155
Unanswered
driesvints
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When, for example, a corrupt PDF is uploaded and a file conversion is defined to create a thumbnail, an Imagick error is thrown. This error bubbles up in the call and ends up with the user instead of it being gracefully handled and an error message is shown.
Example PDF: drupal-and-vuejs.pdf
Stack trace: https://flareapp.io/share/pPvpwe65#F77
Example code:
I personally think Medialibrary (Pro) can do better here, catch all similar errors and display a descriptive error message in its components telling something went wrong and suggesting to review the file that was attempted to upload.
Beta Was this translation helpful? Give feedback.
All reactions