FIX Unable to validate files without tmp_name (regression).
Merge pull request #3 from micmania1/file-validation-fix

FIX Unable to validate files without tmp_name (regression).