DEV Community

Cover image for How to download google drive files with direct link?

How to download google drive files with direct link?

Google drive give us 15 gigabyte free space per account to upload and share our files. of course we can create another account and yes! another free 15 gigabyte. what if we can use it as of a free download host?
well fortunately we can do that. we can generate direct download link of our files, create a streaming app like Netflix or Spotify with our uploaded files on google drive and in this post, we're gonna learn how to do it.

first things first, upload a file on your drive if you have nothing already, then right-click on it and select "Get Link".

How to download google drive files with direct link?

now change the "Restricted" to "Anyone with the link". now a link generated for you so you can share the file with anyone with that.

Google drive direct link generator

now if you open that link, you see file details and download it:

Google drive direct link generator

but this is not a direct link, there is two way to convert this link to a direct download link:

Simple way

using a magic online tools, watch this video:

Free unlimited host for your website and apps | google drive direct download link

Geeky way

copy the file id in shared link, for example:

drive.google.com/file/d/1YNZp0m3jGaaqjtw2jvC6qD7k5eGdh_RZ/view?usp=sharing

file id of above link is :
1YNZp0m3jGaaqjtw2jvC6qD7k5eGdh_RZ

now put it in the end of this link:

drive.google.com/uc?export=download&id=1YNZp0m3jGaaqjtw2jvC6qD7k5eGdh_RZ

now if you open the link about, this file will be downloaded directly.

Discussion (0)