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
- AnonymousJan 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
33 Replies
- Ridwan25Copper Contributor
Hi, please i need a download link for windows 11 pro ISO file
- OthmanTWCopper Contributor
Okay, I’ve found a solution that works for OneDrive Personal. I’m not sure if this method works for OneDrive Business, as I couldn't find the Embed option there.
Follow these steps:
- Upload the document to OneDrive Personal
- Right-click on the document
- Click on "Embed"
- On the right panel, click "Generate"
- Copy the entire generated text
- Paste the copied text into your browser’s URL bar
- Delete everything before and after the URL inside the quotation marks ("")
- Press Enter to navigate to the link
- After the document loads, the link in the address bar will change, and you’ll see the word embed in it
- Replace the word embed with download
This will turn the link into a direct download link.
- clh42Copper Contributor
None of these solutions work for me. I could only get a public link that took me to a preview page, or a direct download link that required login. I could not get a public direct download link. And the "embed" option appears to longer be available either.
Based on this other new, recent post, it looks like MS removed this capability.
https://answers.microsoft.com/en-us/msoffice/forum/all/how-do-you-create-a-sharable-download-link-for-a/fae186d4-b3ac-4e3c-a029-62437b814643 - APatel330Copper Contributor
Most of the replies are correct but again you have manually do the modification and that may tends to human error. I read all the replies and made a http://Most%20of the replies are correct but again you have manully do the modification and that may tends to human error. I read all the replies and made a tool for it. Just paste the link and the sharepoint file will be downloaded. for it. Just paste the link and the SharePoint file will be downloaded.
- 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
https://www.techwithcode.com/p/onedrive-direct-download-link-generator.html 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 ✸https://www.techwithcode.com/p/onedrive-direct-download-link-generator.html✸
- Click on https://www.techwithcode.com/p/onedrive-direct-download-link-generator.html
- 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
Chris Lo Use this https://metadataconsulting.blogspot.com/2019/03/OneDrive-2019-Direct-File-Download-URL-Maker.html since 2004
- MarkPahuljeBrass Contributor
Here's a simple download link generator for this
http://metadataconsulting.blogspot.com/2019/03/OneDrive-2019-Direct-File-Download-URL-Maker.html - 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 :).
- AnonymousWell 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
check mine: https://wenzs-my.sharepoint.com/personal/ongkur_free_stulive_com/_layouts/15/download.aspx?SourceUrl=%2Fpersonal%2Fongkur%5Ffree%5Fstulive%5Fcom%2FDocuments%2FAndroid%2FKinemaster%2FKineMaster%20Premium%20%2D%20Video%20Editor%20v5%2E0%2E7%2E21440%2EGP%20%5BFreeFilescr%2Ecom%5D%2Eapk
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