fixing mime types in s3_sync module (#20059)
This commit is contained in:
parent
e8a94acffa
commit
9d26d8b605
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue