fixing mime types in s3_sync module (#20059)

pull/20484/head
Robert Sax 8 years ago committed by Ryan Brown
parent e8a94acffa
commit 9d26d8b605

@ -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

Loading…
Cancel
Save