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:
parent
7d8a08881e
commit
7872975b0c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue