Forum Discussion
OneDrive Direct Download Link
Hi all,
My Problem and Question
This question pertains to OneDrive for personal use. Microsoft recently made a change to the link format from the embed feature and made my direct download links obsolete. I would retrieve these links from the embed feature in OneDrive and the links looked like what's shown below. The link would directly serve the file to whomever accessed it without them ever having to interact with OneDrive.
With the changes Microsoft recently made to OneDrive, is there a new way of getting links that have this functionality?
Old link format (no longer works): https://onedrive.live.com/download?resid=XXXXXXXXXXX&authkey=XXXXXXXXXXX
My Own Digging
I've scoured several forums unable to find any solutions. I have found a temporary solution; however, the links generated via this method only have temporary authentication, so they expire after a day. Perhaps it could be a real solution if I could figure out how to get a permanent auth token for a personal OneDrive file. I'm retrieving the link from the GET request when clicking the download button on a file from a publicly shared link.
Thank you to anyone that has input!
- User Share > Then anyone security option and copy that link. Then should be something like:
https://xxxxxxxx.sharepoint.com/:t:/s/xxxxxxxxxxxsite/ESsLUY92kJhIgfgYgMQrprgBRe725nqcTXFy52gF2wEkbQ?e=olbgXf
Just add &download=1 to the end and good to go.
https://xxxxxxxx.sharepoint.com/:t:/s/xxxxxxxxxxxsite/ESsLUY92kJhIgfgYgMQrprgBRe725nqcTXFy52gF2wEkbQ?e=olbgXf&download=1- drewstes1Copper ContributorHi Chris, Thanks for your reply.
I don't think this solution will work in my situation. I am using OneDrive for personal use. It is not through SharePoint as far as I am aware. Shared links for files in my personal OneDrive look like the first link below. It redirects to a longer URL (also below), and adding "&download=1" to either links does not do anything. Perhaps this works in SharePoint, but I am not using SharePoint.
Shared Link: https://1drv.ms/u/c/XXXXXXXXX/XXXXXXXXXXX
Redirect Link: https://onedrive.live.com/?redeem=XXXXXXXXX&cid=XXXXXXXXXX&parId=XXXXXXXX&o=OneUp- That was onedrive for business. Sorry didn't know you were talking about personal.