Problem description
The InvalidDigest error was returned when I called the operation to upload a file to Object Storage Service (OSS) by using Security Token Service (STS):
The Content-MD5 you specified was invalidCauses
If you configure Content-MD5 in an object upload request, OSS calculates the MD5 hash of the uploaded object. If the calculated MD5 hash is different from the MD5 hash configured in the upload request, InvalidDigest is returned. This allows OSS to ensure data integrity for object uploads.
Solutions
Make sure that the MD5 hash configured in the upload request is the same as the calculated MD5 hash value of the uploaded object. If InvalidDigest is returned for a file upload request, verify that the specified MD5 hash is correct and upload the file again. For more information about how to check the MD5 hash, see Include signatures in the Authorization header or hash.
References
Applicable scope
OSS