]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/plupload/handlers.dev.js
WordPress 3.3.2
[autoinstalls/wordpress.git] / wp-includes / js / plupload / handlers.dev.js
index d0f8708d7c5af0c4b8afe5bea1796aa553c1def9..5dc56a3d1c46c87b330d166c52a7f8eccc8093f6 100644 (file)
@@ -44,11 +44,13 @@ function fileUploading(up, file) {
 
        if ( max > hundredmb && file.size > hundredmb ) {
                setTimeout(function(){
-                       if ( file.status == 2 && file.loaded == 0 ) { // not uploading
-                               wpFileError(file, pluploadL10n.big_upload_failed.replace('%1$s', '<a class="uploader-html" href="#">').replace('%2$s', '</a>'));
+                       var done;
 
-                               if ( up.current && up.current.file.id == file.id && up.current.xhr.abort )
-                                       up.current.xhr.abort();
+                       if ( file.status < 3 && file.loaded == 0 ) { // not uploading
+                               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);
+                               up.start(); // restart the queue
                        }
                }, 10000); // wait for 10 sec. for the file to start uploading
        }