diff options
Diffstat (limited to 'bot')
-rw-r--r-- | bot/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ def upload_to_s3(key_name: str, file: bytes): | |||
111 | print(f' {bucket["Name"]}') | 111 | print(f' {bucket["Name"]}') |
112 | return False | 112 | return False |
113 | 113 | ||
114 | response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="image/webp") | 114 | response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="application/json") |
115 | status = response["ResponseMetadata"]["HTTPStatusCode"] | 115 | status = response["ResponseMetadata"]["HTTPStatusCode"] |
116 | if status == 200: | 116 | if status == 200: |
117 | print("upload {} to {} succeed".format(key_name, bucket_name)) | 117 | print("upload {} to {} succeed".format(key_name, bucket_name)) |