I'm attempting to upload documents to my server using the technique describe on this blog
All has gone well, and I am able to upload documents just fine. The only snag is when I attempt to upload a file which exceeds the upload limit which is defined in my web.config as so....
<location path="Documents/Documents/Add">
<system.web>
<httpRuntime maxRequestLength="25600"/>
</system.web>
</location>
The problem is that I am not getting a response from the server. In fact, when debugging in Visual Studio, the action is not even hit!
Further investigation in fiddler shows that I'm getting a...
504: ReadResponse() failed: The server did not return a response for this request.
....but I am only getting this in Chrome when fiddler is running. If fiddler isn't running chrome simply sees "Failed" with no status code, and the error() of the $().ajax form call isn't hit.
Also this SO post has exactly the same issue. However, I want to know how I can give feedback to the user when the file size is exceeded as currently the "loading.gif" is just spinning as no error response is being raised.