How Do I Confirm That the Uploaded Object Has Overwritten the Existing Object in the Bucket with the Same Name?
After the upload is complete, you can call ObsClient.getObjectMetadata to obtain the size and last modification time of the target object and compare them with those in the data source. If the sizes are the same and the last modification time of the target object is later than that of the data source, the upload is successful. Otherwise, the upload fails. For details about ObsClient.getObjectMetadata, see Obtaining Object Properties.
Last Article: How Can I Obtain the AK and SK?
Next Article: How Do I Download an Encrypted Object Using a URL?
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.