the issue in this file is that you have bound the download to use the doc_file file field as the download file source, you can only download a file that exists on the server.
Another issue is that The doc_file file field is not part of the same form as the download button that triggers the download.