We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8276a1e commit 44edcfdCopy full SHA for 44edcfd
include/request/data_process_req.h
@@ -601,7 +601,12 @@ class PutImageByFileReq : public PutObjectByFileReq {
601
PutImageByFileReq(const std::string& bucket_name,
602
const std::string& object_name,
603
const std::string& local_image)
604
- : PutObjectByFileReq(bucket_name, object_name, local_image) {}
+ : PutObjectByFileReq(bucket_name, object_name, local_image) {
605
+ // 图片上传时处理可能会覆盖原图,本地文件etag与上传到COS的etag文件的etag可能不一致
606
+ // 这种情况是合理的,所以这里不需要检查etag
607
+ TurnOffComputeConentMd5();
608
+ TurnOffCheckETag();
609
+ }
610
611
virtual ~PutImageByFileReq() {}
612
0 commit comments