Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the correct way of using the Google Drive thumbnails?

I've tried first to store and use the link the API returns, but it expires in a short amount of time. Then I tried to download and store the image locally (and serve it from my servers); but the thumbnail links throws a 404 error when I'm not logged in with my account (though the documents are fully public).

What's the correct way of serving/retrieving the thumbnail of a document?

like image 408
ernestoalejo Avatar asked Dec 28 '25 16:12

ernestoalejo


1 Answers

I finally solved the problem. You can download the thumbnails if you fetch the URL before it expires and you use an authenticated client (using the token you have to access the API). This last bit it's important, because a normal GET request will receive a 404 error otherwise.

like image 192
ernestoalejo Avatar answered Dec 30 '25 14:12

ernestoalejo