Skip to content

Commit dbcca70

Browse files
committed
Modify put_object_from_local_file
1 parent 9642a0f commit dbcca70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qcloud_cos/cos_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ def put_object_from_local_file(self, Bucket, LocalFilePath, Key, EnableMD5=False
21482148
config = CosConfig(Region=region, Secret_id=secret_id, Secret_key=secret_key, Token=token) # 获取配置对象
21492149
client = CosS3Client(config)
21502150
# 上传本地文件到cos
2151-
response = client.put_object(
2151+
response = client.put_object_from_local_file(
21522152
Bucket='bucket',
21532153
LocalFilePath='local.txt',
21542154
Key='test.txt'

0 commit comments

Comments
 (0)