Forum Discussion
Chris Lo
Jan 29, 2018Brass Contributor
Get direct download link of a file in OneDrive for Business
I use "Get Link" button and it gives me a link (like below) which will open the file online. How can I get a link for direct file download? Thanks.
https://*****-my.sharepoint.com/:w:/g/perso...
- 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
Ben Geerdes
Jun 08, 2018Copper Contributor
It does not seam to work for me. I always end up on the download page.
Deleted
Jun 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.- Aug 18, 2019Cool to see after all this time. You Probabaly can just do &download=1 without removing the unique tail end of the document url.
- DS_prakharFeb 24, 2021Copper ContributorThat worked like a charm to me, thanks a lot mate