PDA

View Full Version : [CLOSED] MVC - FileuploadField - IE



thchuong
Oct 21, 2014, 11:41 AM
Hi there,

A MVC web application. There is simple form containing fileuploadfield and a button. The button will fire an action on controller.




public ActionResult Method()
{
var upload = this.GetCmp<FileUploadField>("certificate");
ServiceResult result;
if (!upload.HasFile)
return this.Direct();


// do something


return new DirectResult("Ext.WindowMgr.getActive().close();");
}




It is working well on FF and Chrome but IE. On IE, I got the following thing

http://forums.ext.net/attachment.php?attachmentid=15702&stc=1

Do you have any idea?

Thanks in advance.

Daniil
Oct 21, 2014, 11:48 AM
Hi @thchuong,

I think it needs to set up IsUpload to true for a DirectResult.