0

I have a template file saved in my Microsoft SharePoint document library, I am using a promoted link tile (linking directly to the file in the SharePoint) to make it easier for users to download it.

Problem is, I don't want people to open the file directly, but to force them to save the file first. Is there any way to do so just by adding something in the URL ?

raiskader
  • 89
  • 4
  • 16

2 Answers2

1

In HTML5, most browsers you can add a 'download' attribute to the a element. for example: Download

Refer: How can I create download link in html?

Naveen Prasath
  • 539
  • 1
  • 3
  • 23
  • it seems adding html code in the url does not work in some browser so it won't do, as I need it to work on all browsers. – raiskader Aug 29 '17 at 07:11
0

Yes, there it. Add "/_layouts/download.aspx?SourceURL=" after the site name.

If the direct URL is sp.contoso.com/SharedDocuments/myfile.docx, then the download URL is sp.contoso.com/_layouts/download.aspx?SourceURL=/SharedDocuments/myfile.docx