S3 - set default metadata

I'm looking to force downloads of files (mp3s) that I store on S3. These are uploaded to a Statamic asset. To do this, I'm using the 'download' attribute on an a tag, such as:

<a href="https://s3.amazonaws.com/file.mp3" download>Download MP3</a>

By default, it's not including the metadata that I need to force the download. I believe this is Content-Disposition: Attachment. I can set it manually in S3, but that's a hassle for my clients.

From what I've ready, I can't have an S3 bucket apply metadata by default. Is there a way to set this when uploading through Statamic?

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower