cos.putObject({Bucket: 'examplebucket-1250000000', /* Required */Region: 'COS_REGION', /* Bucket region. Required */Key: 'exampleobject', /* Required */StorageClass: 'STANDARD',Body: fileObject, // Upload the file object.onProgress: function(progressData) {console.log(JSON.stringify(progressData));}}, function(err, data) {if (err) {console.log(err);} else {// You need to add `x-cos-hash-crc64ecma` to Expose-Headers for a successful response.// Documentation: https://www.tencentcloud.com/document/product/436/13318?from_cn_redirect=1var crc64 = data.headers['x-cos-hash-crc64ecma'];console.log(crc64);}});
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback