Fix outfile size in upload_request_protocol