Forum Discussion
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/personal/********/EXhbZTdvlFRIqyBE8crSXggBW8l_yrcZFPTb5fEpAdzB3g?e=i3XdFf
- 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
- michel_lobatoCopper ContributorWell... im back here again to ask something else about this direct link. I came to this forum to know how to get a direct link to files hosted at onedrive for business (.xlsx files in my case) as a part
of a solution to automatically load this files into an BI application. But other colegues warned me that an onedrive direct link changes periodically. In my tests this dont happened. So, anyone knows if this is true? And if this is true is there a way to avoid this? Thanks for the help! - DeepakRaj0Copper Contributor
OneDrive Direct Download Link Generator is a tool that will convert the Microsoft OneDrive embedded code into a direct downloadable link so one can download the shared file without LogIn to their Microsoft account.
How this Tool works:-
- Just Copy the Embedded code from your OneDrive
- Paste the copied link into ✸OneDrive Direct Download Link Generator✸
- Click on Generate Direct Download Link
- Then the Direct Download link will appear in the box bellow, so click on the copy button.
- Chris LoBrass Contributor
It doesn't work for me. Is the generator for OneDrive Personal only?
- MarkPahuljeBrass Contributor
- MarkPahuljeBrass Contributor
Here's a simple download link generator for this
OneDrive 2019 Direct File Download URL Maker - LumbisCopper Contributor
Chris LoI wanted to get a GIF file stored on OneDrive to be shown on another site. I right clicked the file and chose "view online", then right clicked the GIF in the browser and chose "copy image location" which gave me a long URL ending with... CWDi2g/lockar.gif?download&psid=1 where I then removed everything after "lockar.gif".
That worked for me.
- which will work assuming you or the users accessing where that image is, are authenticated to your tenant SharePoint :).
- DeletedWell 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- michel_lobatoCopper Contributor
THANK YOU! It worked for me like a charm. For those who are looking for a solution to get a direct link of onedrive to work with Qlikview (like me), this solution was the light at the end of the tunnel .
Thank you very much for your solution, it was simple and smart! And still works in 2021!
- You're welcome :p.
-The anonymous guy.
- sabarishnCopper Contributor
Doesn't work. It asks for sign-in
- freefilescrCopper Contributor
sabarishn right click on the file and copy the link then open a private tab on your browser then paste and go afte that click on download then imediately cancel the download and go to the downloads from the browser menu then you will see a link on below of your file name copy it and boom this is your direct link
and also visit my website: https://freefilescr.com
- ljfaucherCopper Contributor
MVP - thanks for this simple solution that seems to elude most replies, including Microsoft's, on similar posts!
- AFAIK, there is not a way to get a download link for a file stored in SPO / ODFB
- Pooya ObbohatSteel Contributor
Was expecting to see some controls, but I don't see them either when using Azure B2B guest access. The new secure sharing feature for OD/SPO does give me the control on top. Workaround for me is to remove the last part of the URL, which gives me the library/folder view and there I have the option to select the file and click on the download button.