Drive images not showing in HTMLService

859 views
Skip to first unread message

Martin MULLAN

unread,
Jan 15, 2024, 11:17:34 PM1/15/24
to Google Apps Script Community
Hi All,
I have various HTMLService pages that I present images stored on drive using  https://drive.google.com/uc?id= 
Over the past few days this has stopped working. Does anyone have anywork arounds for this?
Cheers, Mart.

Jean-Pierre Verhulst

unread,
Jan 16, 2024, 8:09:47 AM1/16/24
to Google Apps Script Community
Hi Martin,

Try 

https://drive.google.com/uc?export=view&id=

and see if that works?

Op dinsdag 16 januari 2024 om 05:17:34 UTC+1 schreef Martin MULLAN:

Faustino Rodriguez

unread,
Jan 16, 2024, 11:03:20 AM1/16/24
to Google Apps Script Community
If the export=view doesn't work, you can try the WebViewLink Url as follows 

Martin MULLAN

unread,
Jan 16, 2024, 11:00:22 PM1/16/24
to Google Apps Script Community
Thanks for your help.
Faustino, your solution worked. Cheers. 👍
Mart.

DIKY JULIANTO

unread,
Jan 17, 2024, 1:50:52 AM1/17/24
to Google Apps Script Community
Hello friends, I'm Diky from Indonesia. I also experienced the same bug three days ago, where photos from Google Drive could not be displayed in Appscript. The solution to this issue involves two options:

1. Host photos on another cloud photo hosting service, such as Dropbox. Then, copy the link of the photos that have been uploaded to Dropbox and paste it in your HTML index like this: `<img src="photo link from Dropbox">`.

2. Alternatively, use Google's cloud photo hosting service, Google Photos (www.google.com). Upload the photo to Google Photos, then copy the photo link address and paste it in your index.html as follows: `<img src="photo link from Google Photo">`.

If you need more information, feel free to send an email to my email address at "dikyjul...@gmail.com".

Mr.Sommanat

unread,
Jan 22, 2024, 5:59:26 AM1/22/24
to Google Apps Script Community
Reply all
Reply to author
Forward
0 new messages