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
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
- ghodasarakartikFeb 04, 2020Copper Contributor
Hi ChrisWebbTech , matesfx and Everyone,
It seems to be not working for me,
I've shared links from my personal as well as business account and adding &download=1 or ?download=1 is not downloading the file directly.
Publicly shared file from my personal account
https://1drv.ms/x/s!Ark-bya05CiQhJo-d1hv3O3UpJEoQQ?e=M9N6Pg
Publicly shared file from my business account
https://kartikghodasara-my.sharepoint.com/:x:/g/personal/admin_kartikghodasara_onmicrosoft_com/ERXPGZGayVNPjIGl9Gei4MwBVC9D0VZOt6cOwfcBF4Kspg?e=K6au9X
any help will be appreciated.