Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS s3 add User-Defined Metadata without storing `x-amz-meta-`

Im using AWS s3 to store files, i need to add User-Defined Metadata

"Content-Disposition": attachment;filename=filename.txt when uploading the file/object to aws so i would be able to download it, when uploading with javascript i need to add x-amz-meta-content-disposition, now in s3 the metadate Key is stored as x-amz-meta-content-disposition but the file is not downloding, when i remove manually in AWS console the first part x-amz-meta- and only leave content-disposition then im able to download.

Now my question is: how can i upload the file using javascript and x-amz-meta- should be removed and just be "Content-Disposition": attachment;filename=filename.txt

like image 775
Hershy D Avatar asked Dec 10 '25 22:12

Hershy D


1 Answers

This has been reported as a bug few times:

  • https://github.com/aws/aws-sdk-net/issues/1353
  • https://github.com/jenkinsci/pipeline-aws-plugin/issues/166
  • https://github.com/jenkinsci/pipeline-aws-plugin/issues/40

Thus I think you are experiencing same.

like image 110
Marcin Avatar answered Dec 13 '25 19:12

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!