Hello,
when using the speed plugin, I get a js error when I limit the selected files by file_upload_limit. It says on line 141 of swfupload.speed.js "Null" is Null or not an object. In this line we find file.currentSpeed = 0;
However, I tried the speeddemo too. I do not get the js-error here, but still no alert about selecting too many files when restricting by using file_upload_limit.
Do you have any idea? Thank you.
October 19, 2009 - 8:27am
Hi,
I'm experiencing the same problem.
The error is triggered by the flash movie with no file name.
I think it would be necessary to change the swf files to fix the problem.
October 19, 2009 - 8:55am
1. Do a check on the file variable in the swfupload.speed.js file (line 78) in the SWFUpload.speed.fileQueueErrorHandler function:
=> if(file) file = SWFUpload.speed.extendFile(file);
2. Add this in your custom file_queue_error_handler function :
=> if (errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) {
errorName = "You tried to upload to many files !";
alert(errorName); return;
}
October 23, 2009 - 1:18pm
Thanks, that did it.
But all alert functions need to be done like this again.