2đź‘Ť
âś…
See if you can get S3 to specify the content type of the files as application/octet-stream.
I have just verified this. In the AWS management console you can select a file, click on Properties, select the Metadata tab and then set the Content-Type to “binary/octet-stream”. If it’s e.g. image/jpeg it will display in the browser. If it’s changed to binary/octet-stream it forces the browser to download it instead.
👤Wodin
Source:stackexchange.com