Download local file directly to the temp file