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.
about 'scriptData' when
  • 2.1.4.min.js
    ...if(k.data.queueID){queue="#"+k.data.queueID}a(queue).append('
    <div id="'+a(this).attr("id")+i+'" class="uploadifyQueueItem">
    <div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+i+'\')"><img src="'+f.cancelImg+'" border="0" /></a></div>
    <span class="fileName">
    <input class="upload_filename" type="text" placeholder="input the title..." value="'+fileName+'">('+l+m+')
    <input class="upload_filedesc" placeholder="input the desc..." type="text" value="">
    <input type="checkbox" class="upload_watermark" title="if you want to add watermark..."></span>
    <span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+i+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});...

    zh.upload = {
    btn_clear: $("#btnCancel"),
    btn_upload:$("#btnUpload"),
    getType: function() {return $("#selAlbum").val();},
    getName: function(q) {return q.find(".upload_filename").val();},
    getDesc: function(q) {return q.find(".upload_filedesc").val();},
    getLove: function(q) {return q.find(".upload_watermark").attr('checked');},
    init: function(o,setting){
    o.uploadify({
    'uploader' : setting.uploader,
    'script' : setting.script,
    'cancelImg' : setting.cancelImg,
    'multi' : true,
    'auto' : false,
    'method' : 'GET',
    'scriptData' : {'type':'1'},
    'buttonText' : '',
    'buttonImg' : '',
    'fileExt' : '*.jpg;*.gif;*.png',
    'fileDesc' : '(.JPG, .GIF, .PNG)',
    'queueID' : 'custom-queue',
    'queueSizeLimit' : 5,
    'simUploadLimit' : 5,
    'removeCompleted': false,
    //'onInit' : function(){alert('onInit');},
    //'onCheck' : function(){alert('onCheck');},
    //'onUpload' : function(){alert('onUpload');},
    'onOpen' : function(event, queueID, fileObj){
    var q = $("#"+o.attr('id')+queueID);
    o.uploadifySettings('scriptData',{type:zh.upload.getType(),name:zh.upload.getName(q),desc:zh.upload.getDesc(q)});
    },
    //'onError' : function(){alert('onError');},
    //'onSelect' : function(event, queueID, fileObj) {alert('onSelect');},
    'onProgress' : function(event, queueID, fileObj) {alert('onProgress');
    //var q = zh.upload.getId(queueID);
    //o.uploadifySettings('scriptData',{type:zh.upload.getType(),name:zh.upload.getName(q),desc:zh.upload.getDesc(q),love:zh.upload.getLove(q)});
    },
    'onCancel' : function(event, queueId, fileObj, data) {zh.upload.chState(data.fileCount);},
    'onSelectOnce' : function(event,data) {zh.upload.chState(data.filesSelected);},
    'onAllComplete' : function(event,data) {/*data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');*/},
    'onComplete' : function(event, queueID, fileObj, response, data) {$("#status-message2").prepend(response);}
    });
    this.btn_upload.click(function(){
    $(this).disable();
    //var q = $(".uploadifyQueueItem").eq(0);
    //o.uploadifySettings('scriptData',{type:zh.upload.getType(),name:zh.upload.getName(q),desc:zh.upload.getDesc(q),love:zh.upload.getLove(q)});
    o.uploadifyUpload();
    $(this).enable();
    });
    this.btn_clear.click(function(){
    o.uploadifyClearQueue();
    });
    }
    };

    $(function() {
    zh.upload.init($("#custom_file_upload"),{
    'uploader': '{C_SITE}1/uploadify.swf',
    'script' : '{U('Photo','Upload')}',
    'cancelImg':'{C_SITE}1/cancel.png'
    });
    });


    i made some changes, i want to take 'title'\'desc' and etc to the backend when i upload multiple file,then i'll know the attributes of the file and insert to mysql,but failed?who knowes?
  • The user and all related content has been deleted.