transloadit / uppy

The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
29.17k stars 2.01k forks source link

Thumbnails from cloud companion uploaders (Google Drive, Dropbox, etc) sometimes do not display before upload #5389

Open tyler-dot-earth opened 3 months ago

tyler-dot-earth commented 3 months ago

Initial checklist

Link to runnable example

No response

Steps to reproduce

  1. Add various cloud companion uploaders (Google Drive, Dropbox, Box, OneDrive, etc)
  2. Pick a photo or file from one of those cloud drives. The filetype itself does not seem to matter.
  3. It sometimes (but not all the time) does not display the thumbnail properly

The upload works fine, it's just an issue with the thumbnail before upload.

Note that I'm using Transloadit + Uppy, so the companion servers are managed by Transloadit.

I can't see any rhyme or reason to this - I suspect it's maybe a hotlinking issue, though it's just a guess based on how it looks.

Screenshot:

image

Expected behavior

The chosen file's thumbnail should always display fine.

Actual behavior

The chosen file's thumbnail does not always display fine.

Murderlon commented 3 months ago

Hi, this is expected as very few providers have thumbnails APIs so only those who support it will show up. This is on purpose, as sending the whole file down to the client defeats the purpose of Companion, which should do all the heavy lifting.

The UI should not have a broken icon though, it should fallback to our icons.