mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Found another old s3 call. Used in avatar uploads.
This commit is contained in:
parent
8d5123b3a2
commit
72ef2e2f00
1 changed files with 4 additions and 4 deletions
|
@ -72,10 +72,10 @@ class S3Store:
|
||||||
s3_object = self.s3.Object(bucket_name=self.bucket_name, key=key)
|
s3_object = self.s3.Object(bucket_name=self.bucket_name, key=key)
|
||||||
|
|
||||||
if content_type:
|
if content_type:
|
||||||
s3_object.put(Body=file_object, ExtraArgs={
|
s3_object.put(Body=file_object,
|
||||||
'ContentType': content_type,
|
ContentType=content_type,
|
||||||
'ACL': 'public-read',
|
ACL='public-read'
|
||||||
})
|
)
|
||||||
else:
|
else:
|
||||||
s3_object.put(Body=file_object)
|
s3_object.put(Body=file_object)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue