Building the download file process