Py file upload

  mongodb, question

The file is uploaded. after the uploaded file is obtained, it is read and written to another file.
fout = open(filedir + “/” + saveName, “wb”)
I compare the uploaded file with the source file and use md5 digest. Some source files and new files have the same md5 value
Some are different. I uploaded apk files and then used aapt to unpack those files with different md5. There will be problems when unpacking. There will be error messages in the unpacking information. There will be no problems when unpacking the files with the same md5. Let’s analyze the problems in that place.

What I can see from your description is that some uploads succeeded and some failed.
What about information such as file size?