Topic: Upload wont start

I am trying to start upload as soon as a file is added to the queue but it doesnt seem to start, everything else in FilesAdded event is run. Firebug outputs no errors either hmm This is not being run inside document ready but rather success of an ajax call, would that make a difference? (jQuery 1.4.2)

$.ajax({
            url: ajax_url+'&sa=addbackground',
            success: function(data) {
                $("#dialog").html(data);
                var uploader = new plupload.Uploader({
                    runtimes : 'html5,flash,silverlight,gears,browserplus,html4',
                    browse_button : 'upload-button',
                    url : ajax_url+'&sa=upload',
                    max_file_size : '1mb',
                    filters : [
                        {title : "Image files", extensions : "jpg,gif,png"}
                    ],
                    flash_swf_url : 'Plugins/siggen/js/plupload.flash.swf',
                    silverlight_xap_url : 'Plugins/siggen/js/plupload.silverlight.xap',
                    multi_selection: false
                });
                uploader.bind('FilesAdded', function(up, file) {
                    var listitem='<li id="'+file[0].id+'">'+
                        '<div id="progressbar"></div>'+
                        '<p class="status">Pending</p>'+
                        '</li>';
                    $('#log').append(listitem);
                    // start the upload since it's queued and remove the upload button
                    $("#upload-button").hide();
                    uploader.start();
                });
                uploader.bind('UploadFile', function(up, file) {
                    $('#log li#'+file.id).find('p.status').text('Uploading...');
                    $("#progressbar").progressbar();
                })
                uploader.bind('UploadProgress', function(up, file) {
                    $('#log li#'+file.id).find('p.status').text(file.percent+'%');
                    $("#progressbar").progressbar('value', file.percent);
                });
                uploader.init();
            }
});

Also another question, i am currently using swfupload and i only recently found this. In swfupload (flash based uploader) cookies were not sent to the upload page, would the same occur using Plupload? The work around for swfupload was to send the cookie name/value inside the upload url as a get.

Re: Upload wont start

I answered my second question, cookies are indeed sent during upload. However i still cant work out how to start upload upon a file being added to the queue, i did a console.log(uploader.start()); within the FilesAdded event and it returned undefined, is the start() function not created until after the filesadded event?

Re: Upload wont start

Anyone?

Re: Upload wont start

Try adding the events after the init call.