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

后端 未结 9 1115
终归单人心
终归单人心 2021-02-05 03:09

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 d

9条回答
  •  忘了有多久
    2021-02-05 03:44

    In case someone encounter the same problem and don't want to do with deprecated Google Drive solution above and requires frequently changed files with exact same url, you can use Dropbox. Steps:

    • Download the program and share a folder (tutorial)
    • Copy a file into that folder; wait for sync with Dropbox
    • Go to your dropbox.com account
    • Share your file by button, get something like: https://www.dropbox.com/s/d28d8scvr3rfy48/foo.exe?dl=0
    • Rename it to:
      https://dl.dropboxusercontent.com/s/d28d8scvr3rfy48/foo.exe?dl=0

    Now you have a public, unchanged url for all your foo.exe changes. Enjoy, don't waste time with sites offering you file hosting and they change the URL for same files.

提交回复
热议问题