Google Drive File Hosting - Changes in "uc" URLs

Just wanted to post some general tests I recently performed with the changes in Google Drive File URLs that use the "uc" in the URL. It seems that image URLs that I have used in some Google Apps Script free standing web applications have not worked correctly for a long time when using "uc" in the URL. If you use HTML templates in Appsheet that have an image tag with a source URL to a google drive file this also needs to be updated.

For larger images I have found that 

https://drive.google.com/thumbnail?id=YourFileID&sz=s1000 works in the <img src=""/> tag, however I do not know if this will continue to function after May 1st. Alternatively the "&sz=s1000" can be left off, but this might not fill the container holding the image to the full size. I specifically use this <img src="https://drive.google.com/thumbnail?id=YourFileID" style="width:90px;"/> in one of my html templates and this appears to work.
 
At least initially using the new suggested Google <iframe/> tag I experienced some issues getting the hosted file to size properly. This new format is like this <iframe src="https://drive.google.com/file/d/YourFileID/preview" width="640" height="480" allow="autoplay"></iframe>.
0 2 856
2 REPLIES 2

It should only affect drive.google.com/uc.. URL, not drive.google.com/thumbnail..

I have the same issue.

I have a script that creates URLs to PDF that should open in the print dialog, for a logistic process.

I use: https://drive.google.com/uc?print=false&id=[fileID]

But know the URL only downloads the PDF instead of opening the print dialog.

Someone know when will be the new URL structure for this?

Top Labels in this Space