diff --git a/thumbor_aws/s3_client.py b/thumbor_aws/s3_client.py index e134c29..e2b4251 100755 --- a/thumbor_aws/s3_client.py +++ b/thumbor_aws/s3_client.py @@ -104,7 +104,7 @@ async def upload( data: bytes, content_type, default_location, - encryption + encryption ) -> str: """Uploads a File to S3""" async with self.get_client() as client: @@ -119,8 +119,8 @@ async def upload( if self.file_acl is not None: settings["ACL"] = self.file_acl if encryption: - settings["ServerSideEncryption"] = "AES256" - + settings["ServerSideEncryption"] = "AES256" + response = await client.put_object(**settings) except Exception as error: msg = f"Unable to upload image to {path}: {error} ({type(error)})" diff --git a/thumbor_aws/storage.py b/thumbor_aws/storage.py index 55b3d31..264b95f 100644 --- a/thumbor_aws/storage.py +++ b/thumbor_aws/storage.py @@ -75,8 +75,6 @@ "AWS Storage", ) - - class Storage(storages.BaseStorage, S3Client): def __init__(self, context): S3Client.__init__(self, context)