3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[AWS S3]Content-Typeを一括で書き換える

Posted at

[AWS S3]Content-Typeを一括で書き換える

goofysを使ってS3に上げたファイルのContent-Typeが「binary/octet-stream」となっていたので、「application/pdf」に一括で変換した。


$ aws s3 cp s3://path/to/dir/ s3://path/to/dir/ --metadata-directive REPLACE --content-type "application/pdf" --recursive

参考
AWS S3にアップロードしたファイルのContent-Typeを一括で書き換えるワンライナー

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?