Forum Discussion
Get direct download link of a file in OneDrive for Business
- DeletedJan 29, 2018Well I just took a logical guess and it totally worked lol.... so do this.
Use "Get link", then use "People with existing access" to get the direct link to the file.
Then, the url will be direct path to https://org.sharepoint.com/personal/user_org/folder/filename.ext?d=oiuqjaweorihjlkj
Now, just remove everything after the ? and put in download=1 and magic happens.
https://org.sharepoint.com/personal/user_org/folder/filename.ext?download=1
Use "Get link", then use "People with existing access" to get the direct link to the file.
Then, the url will be direct path to https://org.sharepoint.com/personal/user_org/folder/filename.ext?d=oiuqjaweorihjlkj
Now, just remove everything after the ? and put in download=1 and magic happens.
https://org.sharepoint.com/personal/user_org/folder/filename.ext?download=1
Christopher's method works like a magic. It also works with "Anyone with the link" and "People in my org" mode. Simply add "&download=1" to the end of link.
Thanks Christopher and other people here for your replies.
- Charles ColeJul 25, 2018Copper ContributorYou da real mvp
- Ben GeerdesJun 08, 2018Copper Contributor
It does not seam to work for me. I always end up on the download page.
- jrujonesMay 19, 2020Copper Contributor
For me I had to go through a few steps to get it to work - as a side note I did it with audio mp3 files not pdf or anything.
1. Right click the file and copy link
2. It should come up with a dialogue box that says "People in *domain* with the link can edit". Click on that.
3. Uncheck the "Allow Editing"
4. Click apply then copy the link it gives you
5. Add "&download=1" to the end of it and then put that in a browser url address bar and hit enter.
6. It will then produce an expanded url and when I copied the expanded url it produced it was basically a direct download file for the audio. That worked fine for me.
Best of luck.
- Dave WrightAug 23, 2018Copper Contributor
I am in the same. Can't seem to get it to work on PDFs which is the main file type I need.
- DeletedAug 23, 2018
That's because PDF's are opening directly in your browser from the location via a plugin. If using chrome you can use this method to cause them to download, but it's a browser thing, not a download / server thing, you're actually downloading it, it's just your browser picking it up, so you can either click the download link they provide in the plugin but that's the only way to get pdf's to download outside of zipping them etc.
https://superuser.com/questions/30850/stop-pdfs-from-displaying-inside-google-chrome
- DeletedJun 08, 2018Depending on your Url you might have to use ?download=1 but this won’t work for every single file type either think only office files.
- matesfxAug 18, 2019Copper Contributor
Deleted
Thank you so much, it worked for me. In the past 1 year, my users have trouble downloading compressed folders stored on Onedrive. You can read this problem here: https://www.yannickborghmans.com/2018/05/19/onedrive-some-files-werent-downloaded/
The problem that people encounter is trying to download a file in the compressed folder and that's when an error occurs. I tried many ways to create direct links from Onedrive like using the embed code but it doesn't work.