Forum Discussion
Links to Sharepoint documents set to download
Previously in Sharepoint (mere weeks ago), I was able to change links to Sharepoint documents to set to download, instead of having the document open in a browser.
I would change the URL containing "guestaccess.aspx" to "download.aspx".
However, when I now retrieve a link to a document from Sharepoint, it looks very different (and shorter).
It looks like the following:
https://www.website.com/:x:/s/IntraActive/Path/Document-code
The URL no longer contains "guestaccess.aspx", I therefore am not able to set the document to download.
Does anyone have any ideas?
In SPO you should now be able to download Office documents from inside the Office Online apps that open them.
Other documents can be downloaded directly and/or by using the apps that open them.
So, AFAIK, there is no need to change manually the URL.
Hope it helps...
- Fernando_ChagasCopper Contributor
I got the download link as following:
-right click in the document that is in the lybrary
-download
-then click in the 3 dots of the downloaded file
-click in: copy download link
- FG_TFSBrass ContributorThis does NOT look like Chrome - is it Edge?
- MSUM_CliffertonBrass Contributor
The URL i got from this process (copy download link) looks like this.
site url/_layouts/15/download.aspx?SourceURL=encoded url starting after sharepoint.com
Here's an example of an encoded URL that would work in the box above. It has a leading slash(%2F).
%2Fsites%2FSITE%2DNAME%2DWITH%2DSPACES%2FLIBRARY%2FFile%5FName%5FWith%5FUnderscores%2Ezip
- Herland BjørnsbrorCopper Contributor
the &download=1 works fine on Chrome.
But we switched to Microsoft Edge (Chronium). And there it just opens the file instead as read only. (Without downloading first). Any one know something that works on Edge?
- Greg_HitchonCopper Contributor
Herland Bjørnsbror We are having the same issue (albeit using web=0), seems like this approach is a little hacky.
- Herland BjørnsbrorCopper Contributor
Greg_Hitchon Found a general solution 🙂
In sharepoint library, right click on the file, download file, CTRL + J, Then right click file and copy link. Use that link for download only in a webpage.
- Deleted
Have not seen that yet but your url looks like it is first going to the graph
- Deleted
Thank you for your reply Paul. What graph are you referring to?