Chrome wants me to download my external dropbox links used in 2D GUI in the Playground

Super interesting issue. There are two ways of reading the SVG, one (as @labris mentioned) is to use it as a texture - in this case we pass the image content to webgl and everything is done on that level. The other one, which is the way we are doing it when using it on the GUI is to create an HTML element and set the source to the svg. Then, on load, we use the rendered content. Now - since this is a download link from dropbox, they provide content-disposition on the response, which, in turn, forces the browser to download the file (with the filename provided). Interesting enough, it doesn’t happen when using webgl directly.

This is more of a dropbox feature than something we can solve. We can’t override the content-disposition (and there are probably very good reasons for that). On Dropbox-side, they allow certain types of accounts to provide a share link that is not a download link, but I am no dropbox expert, so I can’t really tell if tha will work - Solved: Can’t disable downloads on a shared link - The Dropbox Community (dropboxforum.com)

Very much relatable! Hang in there! For me it ends on Thursday. Hopefully the last heat wave of this summer :slight_smile:

2 Likes