In the browser console, there isn't the log with the file record json that is logged for other files, and there's no preview of the file displayed (like when you upload png ou jpg file).
No error is displayed. The event "select" of the component vue-file-agent is never emitted.
Expected behavior
The file is successfully uploaded. We can see on the interface the preview of the file like when we upload a jpg or png image. And the event "select" of the component vue-file-agent is emitted.
Screenshots
What you can see when you try to upload a tiff image: there is no preview.
What you can see when you try to upload a jpg image:
Desktop (please complete the following information):
OS: Windows 10
Chrome
101.0.4951.54
Additional context
After debugging, I found out that the problem is located in the function utils.resizeImageUrl. The function image.onerror is triggered. It seems that the generation of the preview of the image fails for ".tiff" images.
Describe the bug The upload of an image file with the extension ".tiff" doesn't work.
To Reproduce Steps to reproduce the behavior:
Expected behavior The file is successfully uploaded. We can see on the interface the preview of the file like when we upload a jpg or png image. And the event "select" of the component vue-file-agent is emitted.
Screenshots What you can see when you try to upload a tiff image: there is no preview.
What you can see when you try to upload a jpg image:
Desktop (please complete the following information):
Additional context After debugging, I found out that the problem is located in the function utils.resizeImageUrl. The function image.onerror is triggered. It seems that the generation of the preview of the image fails for ".tiff" images.
Thank you for your help.