How do you send files through Ajax? Ajax does not support sending files.
If this is a connection timeout in the jQuery console, it will be displayed in red and the ajax request error handler will be called.
, . timeout, timeout ajax. , - 30
$.ajax({
url : "",
data : {},
success : function(data, textStatus, XMLHttpRequest){
},
error: function(XMLHttpRequest, textStatus, errorThrown){
if(textStatus == "timeout"){
alert("timeout")
}
},
timeout : 600000
});
ajaxfileupload,
$.ajaxFileUpload({
.....,
timeout: 60000,
error: function (data, status, e)
{
if(status == "timeout"){
alert("timeout")
}else{
alert(status)
}
}
})
, .