fix race condition on uploaded file
Merge pull request #1740 from conejoninja/move_uploaded

fix race condition on uploaded file