我们正在尝试通过HTTP REST上传文件但文件未上传。下面是代码
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script>
/*$.ajax({
type: 'POST',
url: 'http://164.100.222.253/GLensServer/upload',
data: {"file": "http://localhost/nevcocpcb-local/admin/soft/rspcb/7182_SHRIRAM_BFO_20150911162000.zip"},
dataType: 'json'
});*/
function testAjax() {
$.ajax({
type: "POST",
url: "http://164.100.222.253/GLensServer/delayedUpload",
data: {"file": "6756_RAMLAGO_BFO_20150912133300.zip"},
dataType: 'json',
processData: false, // Don't process the files
contentType: false, // Set content type to false as jQuery wi
success: function(data) {
console.log('Success!', data);
},
error: function(e) {
console.log('Error!', e);
}
});
}
//alert("Hello");
testAjax();
</script>
</head>
<body>
<form></form>
</body></html>
下面我们从服务器获取消息
对象{状态:&#34;失败&#34;,serverConfigLastUpdatedTime:&#34;&#34;,siteConfigUpdateFlag:&#34; False&#34;,statusMessage:
如何纠正问题
由于