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.
Changing uploadLimit on change of form element.
  • I have a radio element in a form and have created JS so that on change of the radio value the uploadLimit will change. IE premium member gets more image uploads.

    I am setting a default uploadLimit in the uploadify set up and then changing it depending on the radio option selected. below is the JS file

    $('#files').uploadify({
    //set post
    'method' : 'post',
    // dont remove uploaded files
    'removeCompleted' : false,
    // dont automatically upload files
    'auto' : false,
    //max file size
    //'fileSizeLimit' : '1MB',
    // set upload limit
    'uploadLimit' : 4,
    'fileObjName' : 'listing_images',
    //check for existing file names
    'checkExisting' : '/uploadify/check-exists.php',        
    'swf'  : '/uploadify/uploadify.swf',
            'uploader' : '/uploadify/uploadify.php',

    });

    $(document).ready(function() {


    // on change of package radio
    $('.package').change( function() {
    //get label value to be used later
    package = $(this).parents('label').text()

    //if standard then display 4 image uploads. if premium them display all 10
    if(package == 'standard') {
    $('#files').uploadify('settings','uploadLimit','4');
    } else if (package == 'premium') {
    $('#files').uploadify('settings','uploadLimit','10');
    }
    });
    });


    I have also tried the settings method setting the final optional parameter to true and this didn't work either. e.g. below.
    $('#files').uploadify('settings','uploadLimit','4', true);
  • I should mention that the initial uploadLimit of 4 works perfectly. It just doesn't update to 10 if premium is selected and back to 4 when standard is selected.