I have a bucket with arbitrarily named files and a ruby script that generates a signed URL that expires in 2 days but I need to add a content disposition header to correct the file name to the desired format.
abritrarily (with a primary key from a database) to prevent filename conflict
is it possible to change the URL to make it add the content disposition header without modifying the files content-disposition header and saving it on the bucket?
If you are using the instance method url_for() of class AWS::S3::S3Object from the AWS SDK for Ruby to generate the pre-signed URL for your Amazon S3 objects, the optional
optionshash allows you to specify Additional options for generating the URL, amongst those the desiredcontent-dispositionheader: