I can't insert files from my Google Drive on my website

115 Views Asked by At

I have image and video files stored in Google Drive that I inserted into my website through this code:

https://drive.google.com/uc?export=download&id={File ID}

But it hasn't been working for a few days now.

I am trying to find the new code to insert Google Drive files on my website. Does anyone know the new code?

1

There are 1 best solutions below

1
Dobbelina On

Here's a workaround, don't know for how long it will work though. Best option is to host images elsewhere as google services are unreliable, and when you have an issue, who you gonna call ghostbusters?

    <body>
      <!-- Thumbnail link with a larger width -->
      <img src="https://drive.google.com/thumbnail?id=1BEW9tkgVKlp_ebUc17LkXDH-mnPc4ome&sz=w1000" alt="Your Image Alt Text">
    
      <!-- Thumbnail link without width -->
      <img src="https://drive.google.com/thumbnail?id=1BEW9tkgVKlp_ebUc17LkXDH-mnPc4ome" alt="Your Image Alt Text">
    </body>

Source