dont use _ in metadata
All checks were successful
Build and Publish / build-release (push) Successful in 49s
All checks were successful
Build and Publish / build-release (push) Successful in 49s
This commit is contained in:
@@ -90,10 +90,6 @@ def upload_file(file: UploadFile, s3_key: str, content_type: str, metadata: dict
|
||||
file_content = file.file.read()
|
||||
file.file.seek(0)
|
||||
|
||||
extra_args = {"ContentType": content_type}
|
||||
if metadata:
|
||||
extra_args["Metadata"] = metadata
|
||||
|
||||
client.put_object(
|
||||
Bucket=bucket_name,
|
||||
Key=s3_key,
|
||||
|
||||
Reference in New Issue
Block a user