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.
uploadifySettings Problem
  • I have a problem with uploadifySettings, i have the html code:

    <div id=\"fileUploadi\">Activate flash and javascript to upload</div>


    And my javascript code is:
        
    $(\"#fileUploadi\").uploadify({
    'uploader' : 'javascript/uploadify.swf',
    'script' : 'subir.php',
    'folder' : 'uploads',
    'cancelImg' : 'javascript/cancel.png',
    'scriptData' : {'ss': ss,'galeria': 0},
    'scriptAccess' : 'always',
    'multi' : false,
    'auto' : true,
    'fileDesc' : 'Imágenes',
    'fileExt' : '*.jpg;*.png;*.gif',
    'sizeLimit' : maxtamanho,
    'buttonText' : 'Seleccionar',
    'onSelect' : function(evt,queueID,fileObj) {
    $(\"#fileUploadi\").uploadifySettings('scriptData',{'galeria': galseleccionada});
    },
    'onComplete' : function(evt, queueID, fileObj, response, data) {
    eval(\"var data=\"+response);
    $(\"#dfaddimg\").dialog(\"close\");
    if (data.ok) {
    crearUnaImagen(data.img);
    } else {
    $(\"#dialog\").html(data.error).dialog({modal: true, title: 'Subir Imagen', width: 360, height: 200, close: function() { $(this).dialog(\"destroy\"); }});
    }
    }
    });


    But in the server i receive the param galeria updated in the onSelect with value 0, and if i put an alert before uploadifySettings update i get galseleccionada value is 1 or 2 or 3 .. but non 0
  • The post doesn't show where 'galseleccionada' is declared or set. Without it, it's a stab in the dark what you problem is.
  • Ok, here is the complete code:

    JavaScript Code

    var galseleccionada = 0;

    //SOME FUNCTIONS...

    $(function(){

    //SOME STUFF NOT USING Uploadify

    $(\"a[href='#vergaleria']\").live(\"click\",function(){
    galseleccionada = $(this).attr(\"rel\");
    if (parseInt(galseleccionada) > 0) {
    $(\"#nogaleria\").hide();
    $(\"#subir\").show();
    var tr = $(this).parent().parent();
    $(\"#galeriaseleccionada\").html($(\"td:first\",tr).text());
    } else {
    $(\"#nogaleria\").show();
    $(\"#subir\").hide();
    }
    $(\"#pestanhas\").tabs(\"select\",2);
    });

    $(\"a[href='#subirimg']\").click(function(){
    $(\"#dfaddimg\").dialog({modal: true, title: 'Subir Imagen', width: 360, height: 200, close: function() { $(this).dialog(\"destroy\"); }});
    return false;
    });

    $(\"#fileUploadi\").uploadify({
    'uploader' : 'javascript/uploadify.swf',
    'script' : 'subir.php',
    'folder' : 'uploads',
    'cancelImg' : 'javascript/cancel.png',
    'scriptData' : {'ss': ss,'galeria': galseleccionada},
    'scriptAccess' : 'always',
    'multi' : false,
    'auto' : true,
    'fileDesc' : 'Imágenes',
    'fileExt' : '*.jpg;*.png;*.gif',
    'sizeLimit' : maxtamanho,
    'buttonText' : 'Seleccionar',
    'onSelect' : function(evt,queueID,fileObj) {
    $(\"#fileUploadi\").uploadifySettings('scriptData',{'galeria': galseleccionada});
    },
    'onComplete' : function(evt, queueID, fileObj, response, data) {
    eval(\"var data=\"+response);
    $(\"#dfaddimg\").dialog(\"close\");
    if (data.ok) {
    crearUnaImagen(data.img);
    } else {
    $(\"#dialog\").html(data.error).dialog({modal: true, title: 'Subir Imagen', width: 360, height: 200, close: function() { $(this).dialog(\"destroy\"); }});
    }
    }
    });
    });


    HTML Code

    <div id=\"list\">
    <table>
    <thead>
    <tr>
    <th>Nombre de la galería</th>
    <th>&amp;nbsp;</th>
    </tr>
    </thead>
    <tbody>
    <tr style=\"display:none;\">
    <td>Testing</td>
    <td>
    <a href=\"#vistarapida\" rel=\"2\" title=\"Vista de la Galería\"><img src=\"templates/admin/images/page_gear.png\" alt=\"Vista Rápida\" /></a>
    <a href=\"#vergaleria\" rel=\"2\" title=\"Subir / Eliminar imágenes\"><img src=\"templates/admin/images/images.png\" alt=\"Subir / Eliminar imágenes\" /></a>
    <a href=\"#editar\" rel=\"2\" title=\"Editar Galería\"><img src=\"templates/admin/images/page_edit.png\" alt=\"Editar\" /></a>
    <a href=\"#eliminar\" rel=\"2\" title=\"Eliminar Galería\"><img src=\"templates/admin/images/page_delete.png\" alt=\"Eliminar\" /></a>
    </td>
    </tr>
    </tbody>
    </table>
    </div>
    <div id=\"fileUploadi\">Activate flash and javascript to upload files</div>


    All other HTML code and JavaScript code works fine.