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.
Dave Wright
Aug 23, 2018Copper Contributor
I am in the same. Can't seem to get it to work on PDFs which is the main file type I need.
- DeletedAug 23, 2018
That's because PDF's are opening directly in your browser from the location via a plugin. If using chrome you can use this method to cause them to download, but it's a browser thing, not a download / server thing, you're actually downloading it, it's just your browser picking it up, so you can either click the download link they provide in the plugin but that's the only way to get pdf's to download outside of zipping them etc.
https://superuser.com/questions/30850/stop-pdfs-from-displaying-inside-google-chrome