code: function uploadNext() {
  		var file, count = 0, i;
  
  		if (this.state == plupload.STARTED) {
  			// Find first QUEUED file
  			for (i = 0; i < files.length; i++) {
  				if (!file && files[i].status == plupload.QUEUED) {
  					file = files[i];
  					if (this.trigger("BeforeUpload", file)) {
  						file.status = plupload.UPLOADING;
  						this.trigger("UploadFile", file);
  					}
  				} else {
  					count++;
  				}
  			}
  
  			// All files are DONE or FAILED
  			if (count == files.length) {
  				if (this.state !== plupload.STOPPED) {
  					this.state = plupload.STOPPED;
  					this.trigger("StateChanged");
  				}
  				this.trigger("UploadComplete", files);
  			}
  		}
  	}
docs: Private methods