wrote upload to temp file for later processing