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
Post a Comment