Progressbar when requesting to download a file with FileResult

1

How can I display a progressbar while the server processes the return of a FileResult?

I tried to perform the operation with Ajax, but it is not possible to download a file via ajax without redirecting it (using window.location.href ) to the action that returns FileResult.

    
asked by anonymous 18.06.2015 / 15:43

1 answer

1

Hello. I believe that asynchronously it would solve.

  • Open a thread on the server and download the file to a temporary directory
  • Download by controlling progress. See: link
  • At the client, ask the server what the progress percentage is and update your progressbar.
  • Download the file!
  • Abs.

        
    19.06.2015 / 07:04