Complete download file function in dashboard page.