python - Setting Content-Type key when uploading directory using Boto -


i using os.walk directory of files , using boto suggested way of uploading large files. have read, need set content-type key @ upload time, directory has multiple file types need different content-type keys. suggestions on how proper content-type each file can set in key? mime types library? else?

from documentation:

when send data s3 file or filename, boto attempt determine correct mime type file , send content-type header. boto package uses standard mimetypes package in python mime type guessing.

from source:

self.content_type = mimetypes.guess_type(self.path)[0] 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -