Fixed upload with no new file issue
Merge pull request #625 from tacitus/master

Corrected checking for actual new uploaded file