I have a multi-tasking file downloader, but sometimes 1 out of 10 files doesnβt execute when loading, and it returns Failed to load resource: net::ERR_CONNECTION_RESET in the chrome console. I tried to catch it with try-catch, but it acts as if an error had not occurred. What am I doing wrong?
var ajax = new XMLHttpRequest(); ajax.open("POST", "/multiFileUploadHandler.php"); try { ajax.send(formdata); } catch (err) { alert('Error: '+err); }
Matthew abrman
source share