Progress when requesting to download a file with Fileresult

Asked

Viewed 184 times

1

How can I display a progressibar while the server processes a Fileresult return?

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

1 answer

1

Hello. I believe that asynchronously it would solve.

  1. Open a thread on the server and download the file to a temporary directory
  2. Download by controlling progress. See: http://devtoolshed.com/content/c-download-file-progress-bar
  3. In the client, ask the server what the progress percentage is and update your progress.
  4. Download the file now!

Abs.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.