문제

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.

도움이 되었습니까?

해결책

"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 ...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top