Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

onAllComplete not working
  • $(\"#Uploader\").uploadify({
    'uploader' : '/_swf/uploader/uploadify.swf',
    'script' : '/myaccount/upload.php',
    'cancelImg' : '/_swf/uploader/cancel.png',
    'expressInstall' : '/_swf/uploader/expressInstall.swf',
    'folder' : '',
    'queueID' : 'fileQueue',
    'auto' : false,
    'multi' : true,
    'hideButton' : false,
    'buttonImg' : \"/_swf/uploader/browse.png\",
    'fileDesc' : 'All Supported Files (<?php echo str_replace(\"*\", \" *\", $ext); ?>)',
    'queueSizeLimit' : 3,
    'fileExt' : \"<?php echo $ext; ?>\",
    'buttonText' : \"\",
    'scriptData' : {'PHPSESSID': '<?php echo session_id(); ?>'},
    'sizeLimit' : '52428800',
    'onAllComplete' : function(event, data){
    if(data.filesUploaded != 3){ alert('You only uploaded '+data.filesUploaded+' if you wish to add '+(3 - data.filesUploaded)+' more please edit the entry'); }
    $('#form1').submit();
    },
    'onSelect' : function(){
    func = function(){
    $('#Uploader').uploadifyUpload();
    }
    },
    'simUploadLimit' : 3,
    });


    This is not working:::

    'onAllComplete'	 : function(event, data){
    if(data.filesUploaded != 3){ alert('You only uploaded '+data.filesUploaded+' if you wish to add '+(3 - data.filesUploaded)+' more please edit the entry'); }
    $('#form1').submit();
    },
  • I was having the same problem for quite sometime. try sending some text (or anything) in response. e.g echo "Done!" after your files are uploaded on the server. It started working for me this way. Cheers