Commit 6314d07e authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

update

parent 479e93a7
......@@ -172,8 +172,6 @@ class AwsStorage(BlobStorageBase):
aws_session_token=self._session_token
)
stream_data = self._preprocess_data(file_data)
if if_match or if_not_match:
extra['etag'] = if_match or if_not_match
extra: dict = {}
if(content_type != None):
......@@ -182,6 +180,8 @@ class AwsStorage(BlobStorageBase):
extra['Metadata'] = metadata
if(auth!= None):
extra['ACL'] = auth
if if_match or if_not_match:
extra['etag'] = if_match or if_not_match
if len(extra)==0:
response = s3_client.upload_fileobj(stream_data, self._bucket_name,object_name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment