Server abort error in jquery.form.js (while uploading large files)
Hi,
I am using jquery plugin in our mvc application. when i try to upload a large file sometimes it works. However sometimes i get an error "server abort" after 10-15 minutes. After examining the plugin i think the error occurs from the below piece of code. I think the readystate got stuck in
uninitialized state and the below code causes an exception after few recursive calls.
- function checkState() {
- debugger;
- try {
- var state = getDoc(io).readyState;
- log('state = ' + state);
- if (state && state.toLowerCase() == 'uninitialized')
- setTimeout(checkState, 50);
- } catch(e) {
- log('Server abort: ', e, ' (', e.name, ')');
- cb(SERVER_ABORT);
- if (timeoutHandle)
- clearTimeout(timeoutHandle);
- timeoutHandle = undefined;
- }
- }