Howdy, Stranger!

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

Dynamically change the file upload path
  • Hi,

    On my web page, I have a form with an input field which takes the path of where the file is to be uploaded.

    <input type=\"text\" name=\"folder\" value=\"folder/some/path\" />


    I'm trying to figure our which event handler to use, to trigger my javascript to edit the folder path.

    Currently I'm using onOpen as I figured when I click browse (open) it will trigger, but this isn't working. Seems to be triggering after the upload is complete or I can't stop the upload.

    Doing this to kill the upload:
    $('#uploadify').uploadifyCancel(queueId);
    return false;


    I'm also looking to do some validation when clicking the browse button, which I guess would be done in the same event trigger.

    Any help will be much appreciated.
  • hi mits147,

    if you are using php you can do as follow:

    in your form add an hidden field
    " />

    in your uplodify initialization code change this:
    'folder' : $('[name=folder]').val(),

    that should do the trick
  • Could some one give me a concrete example, am having the same problem.