This forum is a community forum meant for users of the plugin to collaborate and help solve issues with implementation, etc. Unfortunately, as the creator of the plugin, I do not have much time to attend to every request here as this is only a side project and I must work a full-time job to provide for my family. This is how I keep the Flash version free and the HTML5 version low cost.
UploadiFive 1.1.1 has been released which includes a small fix for added support on touch devices including iOS 6 devices.
Posting additional data on version 3.1
  • I've been searching about this topic for two days, here is the situation...

    After a user selects a file, on the form there are a couple fields needs to be passed to the script that uploads the file... I've been trying everything that is on the net about this, on all the events but nothing...

    here is the code

    $(function()
    {
    $("#file_upload").uploadify(
    {
    uploadLimit : 1,
    method : "post",
    multi : false,
    auto : false,
    fileTypeDesc : "Image Files",
    fileTypeExts : "*.gif; *.jpg; *.png",
    swf : "uploadify.swf",
    folder : "upload_files",
    uploader : "upload_images_controller.php",
    onSelect : function(event,data)
    {
    $("#file_upload-button").hide();
    $("#selected").val("yes");
    }
    });
    });


    Then on my Form:








    Now if I add this on my javascript

    $("#my_submit").click(function()
    {
    $('#file_upload').data('uploadify').settings.formData = {'sizes' : $("#sizes").val(),'member_id' : $("#member_id").val()};
    $("#file_upload").uploadify("upload");
    }

    Does not do anything...

    if I do the same on

    onSelect : function(event,data)
    {
    $("#file_upload-button").hide();
    $("#selected").val("yes");
    $('#file_upload').data('uploadify').settings.formData = {'sizes' : $("#sizes").val(),'member_id' : $("#member_id").val()};
    }

    does not do anything either...

    Now if instead of that

    I do

    onSelect : function(event,data)
    {
    $("#file_upload-button").hide();
    $("#selected").val("yes");
    $("#file_upload").uploadifySettings("scriptData", {"sizes" : $("#sizes").val(),"member_id" : $("#member_id").val()});
    }

    I got an error

    Uncaught TypeError: Object [object Object] has no method 'uploadifySettings'

    So basically the idea of passing extra parameters dynamically does not work...

    Please advice what to do
  • You're hiding the button which essentially kills the swf object. Instead of hiding it, try just moving it off the edge of the viewport.
  • Thanks for your feedback, I remove the hiding part and still the only post variables passing thru are
    [Filename] => IMG_0957.JPG
    [Upload] => Submit Query

    I try the different options
    on the onSelect and via onclick the submit button

    this gives me the same error
    Uncaught TypeError: Object [object Object] has no method 'uploadifySettings'
    $("#file_upload").uploadifySettings("scriptData", {"sizes" : $("#sizes").val(),"member_id" : $("#member_id").val()});

    This one does not do anything
    $("#file_upload").data("uploadify").settings.formData = {"sizes" : $("#sizes").val(),"member_id" : $("#member_id").val()};

    Please advice

    Thanks
  • Did you find a solution?