Download to a temporary file first