javascript - HTTP request is getting cancelled -


i trying upload file remote server. request not hitting there correctly , see status (canceled) in network. dont see datas passing in network. pfb abstract code

xhr = new xmlhttprequest();  if (xhr) {     xhr.open("post", url);     xhr.onreadystatechange = function() {         if (xhr.readystate === 4) {             ///do blah blah         }     };  }  var form = new formdata(); form.append("tpifiles", filedata);  form.append("cookie", 'cookie=' + $.cookie('cookie')); xhr.send(form); 

all helps appreciated.

thanks


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -