Skip to content Skip to sidebar Skip to footer

Direct Link To A File Located On Google Drive

What I want to do is to create a direct link URL to a mp3 file which is located on my Google Drive and use it on Audio object of HTML5, but I get 403 error. I know that when one tr

Solution 1:

You understand that Google drive is not a file hosting service right? This solution is not going to be very stable even if you do get it to work.

For it to work your going to need to set the file public so that everyone can access it. Then i would be willing to bet you will need an API key to do this in the long run.

Also remember that file id is not stable it can change in the future if for example you upload the file.

Solution 2:

I solved this on my own. I right clicked the file, clicked Get link, and changed the authorization selection from Restricted into Anyone with the link. Then, the 403 error vanished for the access from anyone.

Post a Comment for "Direct Link To A File Located On Google Drive"