Exploring ways of migrating our downloads site to an AWS S3 bucket, we would preferably need to add the equivalent of
ForceType application/octet-stream
Header set Content-Disposition attachment
to prevent the files from just playing in the browser instead of downloading.
Looks like we could programmatically add the "content-disposition
attachment" header to each file uploaded (to a folder) on an S3 bucket
using a technique explained here,
No comments:
Post a Comment