Welcome to the new Uploadify Community Forums. We've made the switch from PHPBB to Vanilla Forums in hopes of controlling the SPAM more efficiently. We hope this change doesn't suck so much. Also, don't forget to wrap your code in tags. You can quickly insert code using ctrl + f.
I lost some messages that were posted on February 4th. If you posted a message or reply on February 4th, please do so again. Sorry about the inconvenience.
uploadifySettings error
  • Hi there,

    I have been successfuly using Uploadify for a while now and I am trying something different to the normal and I have hit a problem. I am initalising Uploadlify as I normally would however I am using and onclick event to call funtion to uplaod the folder location using uploadifySettings. Here is the code:

    To Initialise:

    $(document).ready(function(){  
    //initalise uploadify uploader
    $(\"#uploadObj\").uploadify({
    'uploader' : '/plugin/uploadify/uploadify.swf',
    'script' : '/plugin/uploadify/uploadify.php',
    'cancelImg' : 'cancel.png',
    'folder' : 'updates',
    'queueID' : 'fileQueue',
    'auto' : true,
    'multi' : false,
    'onComplete' : function(event,queueID,fileObj,response,data) {
    finishUpload(fileObj.name);
    }

    });

    });


    The link code for the function.

    <a href=\"#\" onclick=\"onShowUploader();return false\" class=\"linktolaunch\">Upload New</a>


    And the function that I use to update the settings:

    function onShowUploader() {
    $(\"#uploadObj\").uploadifySettings('folder','uploads');
    }


    This is the error I get when the link is clicked.

    Error: document.getElementById(jQuery(this).attr("id") + "Uploader").updateSettings is not a function
    Source File: .../uploadify/jquery.uploadify.v2.1.0.js
    Line: 227


    Is there a flaw in my logic for using the uploadifySettings function?

Howdy, Stranger!

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