Plupload: no need to reset the queue when one file fails (handled internally), see #20422

git-svn-id: https://develop.svn.wordpress.org/trunk@20467 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2012-04-14 19:51:55 +00:00
parent c796066fac
commit ed87c7abd1
1 changed files with 1 additions and 8 deletions

View File

@ -50,14 +50,7 @@ function fileUploading(up, file) {
wpFileError(file, pluploadL10n.big_upload_failed.replace('%1$s', '<a class="uploader-html" href="#">').replace('%2$s', '</a>'));
up.stop(); // stops the whole queue
up.removeFile(file);
for ( done in up.files ) {
// remove files that have been uploaded or have returned errors
if ( up.files[done].status > 2 )
up.removeFile( up.files[done] );
}
// restart the queue
up.start();
up.start(); // restart the queue
}
}, 10000); // wait for 10 sec. for the file to start uploading
}