I uploaded a file to a folder in


I created a view link, requiring no access

enter image description here

The link that I get when I click on share looks something like this


The problem is when I open the generated url in incognito window, it opens in word online

Is there a way to change this make it download file directly?

Is there a api for this just like how onedrive has like below which will directly download the file


  • Does right-click and save as work for you?
    – Benny Skogberg
    Jun 22, 2016 at 11:35
  • that will require sign-in I guess, I need a download link for anonymous access Jun 22, 2016 at 11:37
  • basically I am using a javascript plugin, which will ask for the source of the document and download it and modify it. I want to get a link to do that Jun 22, 2016 at 11:38
  • Can you send the guest-link in an e-mail and right-click from there?
    – Benny Skogberg
    Jun 22, 2016 at 11:38
  • No, I am not able to do that I also tried changing href in one of the links here, when I right click and save, it is coming up as a webpage Jun 22, 2016 at 11:44

6 Answers 6


You should be able to add the query string parameter `Web=0'

For example:



To get the direct download link, you have to click on the document, get the share link which will look like below url


Now all you have to do is replace the guestacces.aspx with download.aspx, and the url should look like the one below


When people click the link the document will automatically start to download

  • 2
    This worked like a charm!
    – Jake
    Oct 9, 2016 at 9:09
  • 1
    In 2021 using SharePoint Online, the URL is not in this form (and does not contain guestaccess.aspx).
    – CarlF
    Aug 2, 2021 at 12:51

Adding ?Web=0 worked perfectly for me.


This is the easiest solution:

Open the file in Sharepoint, go to File -> Save As -> Download a Copy

After it downloaded to your computer, go to your downloads history (Usually Ctrl+J), then find the most recent downloaded file, and copy the link of the downloaded file (better using Google Chrome).

Easy and fun! =)


There are also column settings that can add or remove the Get Link option. For instance, in the Modify View menu, the column "Name (linked to document with edit menu)" displays the ... option to select the Get Link dialog. The other Name columns do not have this option.


None of the above worked for me. My share link does not include "guestacces.aspx" and the ?Web=0 query param didn't work. What you can do is share a link, download the pdf from a browser and go to the browser downloads page to copy the link. Ctrl-J on Windows, Cmd-Shift-J I believe on a Mac

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.