This assignment drops the real cause of the fail in the upload. It is also unnecessary. The condition that is checked later for this value can be done in other way...