download files with `xhr`, report progress and send the file.