Mohammad, can you reproduce this in a test project and submit it to MXDN?
I suspect that the case you are running into has to do with the fact that binary/file uploads bypass the XMLHTTPRequest system that all other changes go through.
The Mendix web client also disassociates changes to a specific instance in order to handle multiple 'edit/view' forms that operate on the same instance simultaneously.
There is probably a parallel requirement collision when uploading a file with non-valid attribute values.
If you can reproduce this in a test project and submit it to MXDN we can verify this case and figure out how to handle it appropriately (if my guess is correct).
Yes Michiel I sent already a test project to MXDN, where the same problem(commit) happens even after uploading file and pressing on micro-flow button that is empty and has nothing to do