0

Anyone know why HttpWorkerRequest.GetBytesRead() always returns 0, even during and after a file upload? Would like to use this method to build a progress bar.

Sigray
  • 239
  • 4
  • 10

1 Answers1

2

"This API supports the .NET Framework infrastructure and is not intended to be used directly from your code."

http://msdn.microsoft.com/en-us/library/system.web.httpworkerrequest.getbytesread(v=VS.90).aspx

so probably this only returns this on a certain moment in the pipeline, but as stated by MS I would not try to use it since it's not supported ...

Tim Mahy
  • 1,319
  • 12
  • 28