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

git-svn-id: http://svn.automattic.com/wordpress/trunk@20467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2012-04-14 19:51:55 +00:00
parent 7d8a08881e
commit 7872975b0c
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
}