Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is is possible to get a permanent URL to a file uploaded to Google drive?

I can't find the answer to this in the API docs or elsewhere. I see in the docs says you can get a downloadURL of a file, but it refers to it as a 'short lived URL'. What does that mean?

I need to upload images and get a permanent URL of that image that is the direct URL than can be embedded into emails or web docs etc. Is that possible?

Thanks

like image 408
user1459246 Avatar asked Jun 15 '12 16:06

user1459246


People also ask

Are Google Drive Share links permanent?

When you share any file or folder in Google Drive with another user, the shared links will work forever unless you manually change the sharing permissions. For instance, if you have shared a document with an external vendor, they'll continue to have access to the file long after your business contract may have ended.

How do I get a direct URL in Google Drive?

With Google Drive, you can store files in the cloud and share them easily with anyone. Open any file in Google Drive, click the Share button and you'll get a URL (link) that others can use to access your file.


1 Answers

Yes, you can get a permalink to any file hosted on Google Drive in a public folder. Just note the folderID: Google Drive folder ID and paste it to the following URL: http://googledrive.com/host/<folderID>/<filename> or you can create a short custom alias using G Drives: http://gdriv.es/<alias>/<filename>

like image 51
niutech Avatar answered Sep 20 '22 19:09

niutech