From 78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 10 Mar 2023 21:14:40 -0800 Subject: update caption --- bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') 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): print(f' {bucket["Name"]}') return False - response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="image/webp") + response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="application/json") status = response["ResponseMetadata"]["HTTPStatusCode"] if status == 200: print("upload {} to {} succeed".format(key_name, bucket_name)) -- cgit v1.2.3