Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppsScript- Using an image from Google Drive in HtmlService

The Images section of the following document

https://developers.google.com/apps-script/html_service

says that only images hosted on a public url can be displayed (due to the use of the image proxy).

Does that apply to images stored in the user's google drive? Is there any way to use such images as HtmlService elements?

like image 537
Giannis Spiliopoulos Avatar asked Nov 28 '25 08:11

Giannis Spiliopoulos


2 Answers

There is not yet a way to do what you are asking.

like image 176
Corey G Avatar answered Nov 30 '25 22:11

Corey G


It sounds like you're trying to offer some sort of permalink from Google Drive that is publicly accessible.

  • Open the File.

  • Under the File Menu, Click Sharing.

  • Under "Who has access", click Change. private

  • Select "Public on the web". sharing options

  • Click done, and copy the link listed. That is your publicly available link which should work for you. public link

like image 24
Zoot Avatar answered Nov 30 '25 23:11

Zoot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!