POST Ajax请求获得提示

时间:2016-09-15 11:15:20

标签: ajax

我正在接受"网关超时"发布ajax请求时我的浏览器出错如下:

$.ajax({
  url: '/templatemanager/fileupload.html',              
  data: formData,
  processData: false,
  contentType: false,
  type: 'POST',
  success: function(data){
    alert ('done');
  },
  error: function(jqhdr, textStatus,errorThrown){
    alert (errorThrown);
  }
});

The error thown message is "Gateway Time-out".

Please let me know, how to rectify this issue.
Whether, i should increase the tomcat http connector tiemout or ajax timeout? 

1 个答案:

答案 0 :(得分:0)

你正在做一个" POST"到HTML文件。我尝试设置'输入'到" GET"。

(或者,该文件应该是PHP,因为它可能是关于文件上传的?)

相关问题