use upload_tmp_dir as temp place, see #297

We changed a line like this some time ago in upload/main