Trying to use the HTML5
download
attribute to create a forced download of a file...
<a href="original-filename.txt" download="newname.txt">
Download text file
</a>
From this server
This should work provided that this server is not Dropbox.
It seems that some servers do not correctly do this. Maybe it's the mime type or something.
Results in various browsers
In Chrome and Firefox, this works.
In Safari, the file is displayed inline with it's original name.
For an external server
Download attributes don't seem to work when the content is on a separate server
Results in various browsers
In Chrome, the file is downloaded with it's original name
In Edge, the file is downloaded with it's original name
In Firefox, the file is displayed inline with it's original name.
In Safari, the file is displayed inline with it's original name.
In Internet Explorer 11, the file is displayed inline with it's original name.