aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 37fefac..307f18f 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -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))
Powered by cgit v1.2.3 (git 2.41.0)