Accessing to Request object will lead to ReadEntityBody to return 0 (in a HttpHandler class)
<p>I created a httpHandler that successfully implements IHttpHandler for handling file uploads. It works perfectly fine. You send the file with the form, the class receives it and will save it to hard disk. It reads chunks of file with ReadEntityBody function of HttpWorkerRequest class.</p>

<p>Here is the situation i'm faced with.If at any stage before trying to read the file with ReadEntityBody, I try to access Request object (even Request.InputStream.Length!) ReadEntityBody would return 0 means it won't read from file stream.</p>

<p>After further testing I found out the reason behind it. <strong>Accessing to <code>Context.Current.Request</code> object will trigger some sort of functionality that will cause asp.net to handle file uploads at that moment by it's own!</strong> I believe this is a bug.</p>

<p>for example exactly after this line of code, asp.net will upload the file completely, and so there will be no stream for ReadEntityBody to read from later.</p>

<pre><code>int FileSize = context.Request.InputStream.Length;
</code></pre>

<p>Can anybody tell how to stop this? </p>
