diff options
author | clarkzjw <[email protected]> | 2023-03-10 21:14:40 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-03-10 21:14:40 -0800 |
commit | 78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e (patch) | |
tree | c7575cadabf63d58f230bb61ae39db971c0c0865 /bot | |
parent | f68bb4719a4da7115953cc2ab10f20baee329741 (diff) | |
download | photo-78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e.tar.gz |
update caption
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)) |