Glimpse/Glimpse — Issue #152: File uploads never return response when Glimpse installed
Author: ceilidhboy
Created: 2012-01-02 00:34:06+00:00
State: open

1. Create a standard ASP.NET MVC 3 web app.

2. Add the following to Index.cshtml:

Filename:

3. Add the following action to the home controller:
[HttpPost]
public ActionResult Index( HttpPostedFileBase file )
{

if ( file.ContentLength > 0 )
{
var fileName = Path.GetFileName( file.FileName );
var path = Path.Combine( Server.MapPath( "~/App_Data/" ), fileName );
file.SaveAs( path );
}

return RedirectToAction( "Index" );
}

4. Run the app and upload a large-ish file, e.g. around 500KB. Check the App_Data folder and it should be there.

5. Install Glimpse.

6. Try the upload again.

Expected result: no difference - file should upload and index page displayed in browser.

Actual result: file is uploaded but browser "hangs" with no response returned by web server. Fiddler confirms.