We are using extjs and webapi(C#)
for our application. My form has a fileupload
control. When we use form.sumbit()
in extjs, it is not going to the success function.
WebApi code:
bool SaveData(Employee obj)
{
return true;
}
Extjs code:
form.submit( {
url: '../api/Empcontroller/SaveData',
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
success: function ( fp, o )
{
},
failure: function ( fp, o )
{
}
} );
I'm getting the response as true in all browsers. In Chrome
its coming into success, But in Firefox its not.