use upload_tmp_dir as temp place, see #297

We changed a line like this some time ago in upload/main
Merge pull request #322 from HungryFeline/patch-3

use upload_tmp_dir as temp place, see #297