fixing mime types in s3_sync module (#20059)

This commit is contained in:
Robert Sax 2017-01-19 15:14:05 -05:00 committed by Ryan Brown
parent e8a94acffa
commit 9d26d8b605

View file

@ -428,12 +428,11 @@ def upload_files(s3, bucket, filelist, params):
ret = []
for entry in filelist:
args = {
'ContentLength': entry['bytes'],
'ContentType': entry['mime_type']
}
if params.get('permission'):
args['ACL'] = params['permission']
s3.upload_file(entry['fullpath'], bucket, entry['s3_path'], ExtraArgs=None, Callback=None, Config=None)
s3.upload_file(entry['fullpath'], bucket, entry['s3_path'], ExtraArgs=args, Callback=None, Config=None)
ret.append(entry)
return ret