是否可以获得上传到Google驱动器的文件的永久URL? [英] Is is possible to get a permanent URL to a file uploaded to Google drive?
问题描述
我无法在API文档或其他地方找到答案。我在文档中看到,你可以获得一个文件的下载URL,但它将其称为短暂网址。这意味着什么?
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
推荐答案
是的,您可以在公用文件夹中获得托管在Google云端硬盘上的任何文件的固定链接。请注意文件夹ID:
并将其粘贴到以下网址:
http://googledrive.com/host/<folderID>/<filename>
或者您可以创建一个简短的自定义别名 G驱动器: http://gdriv.es/<alias>/<filename>
Yes, you can get a permalink to any file hosted on Google Drive in a public folder. Just note the folderID:
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>
这篇关于是否可以获得上传到Google驱动器的文件的永久URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!