I have a large S3 bucket with a nested "folder" structure containing (among other things) static .json and .md files. Theses files are being served by S3 as text/plain
rather than the correct application/json
and text/markdown
.
I have updated the bucket defaults so that new uploads will have the correct content type.
What is the best way to walk the "tree" and update the content type for files matching a certain extension?