Should the md5 checksum be checked for file upload?
Situation 1:
The blob is being overwritten.
My steps:
- Get a blob reference
- calculate the md5 checksum on the original file
- upload the md5 checksum using upload properties
- upload another file which is slightly modified than the original file
My modified file is uploaded successfully, and I can download the file from azure cloud and the downloaded file is the modified file.
Situation 2:
The blob is new.
How should I submit a md5 to be checked when the file is uploaded?
- I can not upload properties before the file upload because blob is not created.
- If I submit the md5 after the file upload, how can the server know my md5?
Should the md5 checksum be checked for file upload?
Situation 1:
The blob is being overwritten.
My steps:
My modified file is uploaded successfully, and I can download the file from azure cloud and the downloaded file is the modified file.
Situation 2:
The blob is new.
How should I submit a md5 to be checked when the file is uploaded?