Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading a ".tiff" image doesn't work #183

Open
lsr57 opened this issue May 18, 2022 · 0 comments
Open

Uploading a ".tiff" image doesn't work #183

lsr57 opened this issue May 18, 2022 · 0 comments

Comments

@lsr57
Copy link

lsr57 commented May 18, 2022

Describe the bug
The upload of an image file with the extension ".tiff" doesn't work.

To Reproduce
Steps to reproduce the behavior:

  1. Go on the demo page here: https://safrazik.github.io/vue-file-agent/
  2. Select a tiff file to upload (you can find one here: https://file-examples.com/index.php/sample-images-download/sample-tiff-download/)
  3. 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).
  4. 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.
image

What you can see when you try to upload a jpg image:
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.

Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant