Topic: Autostart on 'FilesAdded' listener

Hey, quick question... I simply added uploader.start(); to the 'FilesAdded' listener so that users don't need to click 'Begin upload' but it doesn't seem to be working.

Am I missing something?


Re: Autostart on 'FilesAdded' listener

Apparently the uploader is not ready to start() for some (unknown) period after FilesAdded fires. I'm using half a second:

// in FilesAdded handler
setTimeout(uploader.start, 500);

TO fix this, Plupload should delay the FilesAdded event until it knows it can start (preferable) or introduce a StartReady event to the file object.