<form method="POST" action="${ctx}/statement/manage/upload" name="form" enctype="multipart/form-data" id="uploadFile">
<input id="upload" type="file" name="file" value="" />
</form>
$.ajax({
url : url,
type : 'post',
processData : false,
contentType : false,
data : new FormData($('#uploadFile')[0]),
dataType : "json",
success : function(data) {
if (data) {
window.location.reload();
}
},
statusCode : {
404 : function() {
MXHY.isSend = true;
console.log('404');
}
},
error : function(msg) {
console.error(msg);
}
});