copy content to file and use progress bar