Reputation: 5580
If I have a file stored on amazon S3 and I want it to download when the user clicks on it normally, how can I accomplish that?
I found some information on setting the content disposition(?) but I can't find anything actually providing instructions on how to do so.
Upvotes: 3
Views: 6659
Reputation: 21
You can configure it by using setContentDisposition in sdk
In java
ObjectMetadata metadata = new ObjectMetadata();
metadata.setContentDisposition("attachment; filename=...");
By this when a user clicks on the link file will be downloaded
Upvotes: 1
Reputation: 1409
Check Content-Disponsition in your File S3 or when upload the file.
Upvotes: 3
Reputation: 16575
You can select file > properties > meta-data and add the content-disposition header as an option there.
Upvotes: 11