
Hi @Cabillo, Mark Joseph ,
It is common for images and text (.txt) files to be displayed in the browser instead of downloading when accessed through a URL. The "?download=1" trick may not work for these file types. One possible workaround is to add "&web=1" to the URL instead of "?download=1". This should force the file to download instead of being displayed in the browser.
However, it is important to note that this workaround may not work in all cases and it may depend on the browser being used. Additionally, you may need to add the SharePoint URL to the list of trusted sites in your browser settings before the download can proceed.
References:
- Workaround: A SharePoint file is downloaded instead of opening the Office application with a direct connection to it - https://learn.microsoft.com/en-us/sharepoint/troubleshoot/lists-and-libraries/files-downloaded-instead-of-opening-office-application#workaround
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.