It is not possible to change the type of content (or any other metadata) associated with a file after it is created. However, you can copy the file on the server side and change the metadata in this process. Here is the github gist that should help:
https://gist.github.com/1791086
Content:
import boto s3 = boto.connect_s3() bucket = s3.lookup('mybucket') key = bucket.lookup('mykey')
Mitch
garnaat
source share