Problems with queue_complete_handler never getting fired

Hi!

I am using SWFUpload in the administration panel for a gallery solution I am working on. It works great apart from one thing. The function specified as queue_complete_handler never gets fired. As I understand it I only have to include swfupload.queue.js to get the functionality of the queue plugin or am i missing something? Should it be initialized in some way?

Thanks
Felix

gyphie's picture

Settings

You have to include the queue plugin and you have to set the queue_complete_handler in the settings.

Then make sure you are not calling "return false;" in your upload complete handler.

Here is the code that I am

Here is the code that I am using.
http://pastebin.com/d631b4c18
It's a work in progress ^^
Any ideas on what might be wrong. The alert saying "queueComplete" never gets fired.

Thanks Smiling

gyphie's picture

Bug

There is a bug in the Queue plugin.

swfupload.queue.js line 34 should say:

this.settings.queue_complete_handler = userSettings.queue_complete_handler || null;

instead of

this.settings.queue_complete_handler = this.settings.queue_complete_handler || null;

An official fix will be released in the next version.