Hmmm.... I think you have already answered your question. The tmp file should be the one you can open/read.
I did something similar where in the uploaded file is an essay and the rules of the essay says "essay should have no more than 500 words". I had to open the file and count the words on -validate :).