i-e-b / jQueryFileUpload.Net

[Out of Date] .Net handler for http://aquantum-demo.appspot.com/file-upload
68 stars 54 forks source link

Initial file list not displaying in chrome, (works in Firefox) #5

Closed stejokiting closed 12 years ago

stejokiting commented 12 years ago

First off, good job porting this project, very helpful.

One minor issue I've found - when the page first loads in google chrome, the call to ListCurrentFiles() in the ashx is failing. I commented out the below line which seems to fix it. Not sure why its there in the first place.

context.Response.AddHeader("Content-Disposition", "inline, filename=\"files.json\"");

i-e-b commented 12 years ago

This line tells the browser that the response should not be downloaded, and gives it a fixed resource name. I've not noticed any problems with Chrome before (it's my primary browser); I will have a look to see if the header can be removed without breaking other browsers.