How do I add or modify the Content-Disposition of an existing object in Amazon S3?
问题 We have hundreds of object in an AWS S3 bucket which don't have content disposition set. I'm using Ruby aws-sdk gem. How do you add or change content disposition to these objects, WITHOUT re-uploading the files again? I have tried obj.write(:content_disposition => 'attachment') obj.copy_from(obj.key, :content_disposition => 'attachment') and also copy_to(), move_to(), but none of these seem to work in adding the content disposition to the objects. In a few cases, the objects don't seem to