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 - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -