Hi i have given the complete code for my file upload .But in my views i am just trying to return a response and get the alert on the UI.But none of the return statements are wor
Check that you have no errors in web browser console. Perhaps the problem in ajaxSubmit function. Try change ajaxSubmit to:
$.ajax({ url: form.attr('action'), data: form.serialize(), type: 'POST', success: function(data){ alert(data); } });
and check result.