Requirement: Force download a file instead of opening in SharePoint Online
SharePoint Online: URL to Document Download Instead of Open
Documents linked in SharePoint Online pages, navigation menu, lists, etc. open in the browser (or in client application!) directly either in Read-only mode or in Edit mode, based on user permissions. What if you want to force downloading a file, instead of opening it in the browser? Well, here are some ways to generate a link that downloads the document directly (or force download link).
Use the format to frame a force download link: https://<yourdomain>.sharepoint.com/sites/<yoursite>/_layouts/download.aspx?SourceUrl=<document-URL>
When a user clicks on the link, It downloads the file instead of open!
Use to “Copy link” Option to get the link to document and append “&download=1”
Just navigate to the document library where your documents are located, select the file and click on the “Copy link” button in the ribbon >> Copy the URL and append “&download=1” to it.
This URL directly links to document the download in SharePoint Online.