Allow changing of upload_tmp_path via parameter

This is a fairly trivial addition to allow changing the upload_tmp_path via a parameter.