Back

Issue displaying file preview when the user uploads webp image

  • 0
  • Storage
  • Cloud
Brinamite
6 Feb, 2025, 21:24

Hi,

I am having a weird issue where when the user is uploading a file with .webp extension to my appwrite cloud storage bucket (using storage.createFile ), it does not generate a preview.

When the user uploads any other file format, I am able to generate a preview using storage.getFilePreview, however, to display the webp image that the user uploaded, I have to use getFileView.

The attached image shows the list of images in my bucket, notice how the webp images have no thumbnail.

When I invoke getFilePreview on one of the webp, I get the second image.

As stated earlier, invoking getFileView solves the issue, but I am losing out on a lot of image optimizations.

TL;DR
Issue with displaying file previews for uploaded .webp images in appwrite cloud storage. Developers experiencing bug where previews are not generated using storage.getFilePreview as expected. Temporary solution is to utilize storage.getFileView for webp images, but this results in loss of image optimizations. Request to create a GitHub issue for further investigation.
Steven
6 Feb, 2025, 21:29

As mentioned in office hours, looks like this is a bug. Can you create a GitHub issue?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more