Verify file is uploaded correctly in s3

Hi I am using amazon sdk to upload file. Now I want to check that file is uploaded correctly and not corrupted. I have tried etag and compared with checksum created locally. It works as well but some how I have found that sometime etag in not representing correctly. So there is another method by passing metadata while writing object. I have found that method but don’t know how would I know that it correctly uploaded. How to check what response s3 has set so that I can know its uploaded successfully.

I have read this issue:


Anand Soni