Images stored on Google Drive will sometimes not load on webpage using GAS via a web app

156 views
Skip to first unread message

Michael Allen

unread,
Sep 13, 2023, 8:26:58 PM9/13/23
to Google Apps Script Community
I've stored images, around 5k in size mostly, on Google Drive and 90% of the time I can view them on my website which is programmed in GAS/JS using the Google Apps Script editor and deployed as a web app. The urls, file ids, are all correct however I at first thought it was when Google had heavy traffic. Today though I tried showing the website to someone in another state and none of the images at all would load on their computer nor would any pages which tried loading images would load (except for the main "intro" page which while loading didn't display any images).  I signed up for Google Workspace today hoping this would solve the issue but I'm again getting the "broken image" icons instead of the actual images.  I've tried preloading using "load" statements in Javascript which seemed to help somewhat but still run into numerous issues.  It's a database site using Google Sheets and when this first happened the smaller number of returned items seemed to help (ie, 8 instead 150) but even today the person tried "only 8 items" and it still refused to load any images. Unfortunately I am unable to host these images on a web server and if possible keep them on Google Drive.
Reply all
Reply to author
Forward
0 new messages