【问题标题】:Form-to-Mail Multiple File Uploads using One File Input Element (Joomla Component)使用一个文件输入元素(Joomla 组件)以表单到邮件的方式上传多个文件
【发布时间】:2015-12-03 18:52:48
【问题描述】:

我已将 joomla 组件 Form-To-Mail 安装到 Joomla 3.4.4 安装中。这是 Form-to-Mail 组件的付费版本,所以我拥有完整的功能和修改权限。

目前 - 我已配置所有内容,但我需要能够使用单个文件输入元素允许多个文件上传。

我相信这是文件上传元素上代码的正确文件。如果这看起来不正确 - 让我知道是否需要更多信息才能修改此组件以进行多个文件上传:

    $.fbuilder.controls[ 'ffile' ] = function(){};
$.extend( 
    $.fbuilder.controls[ 'ffile' ].prototype, 
    $.fbuilder.controls[ 'ffields' ].prototype,
    {
        title:"Untitled",
        ftype:"ffile",
        required:false,
        size:"medium",
        accept:"",
        upload_size:"",
        show:function()
            {
                return '<div class="fields '+this.csslayout+'" id="field'+this.form_identifier+'-'+this.index+'"><label for="'+this.name+'">'+this.title+''+((this.required)?"<span class='r'>*</span>":"")+'</label><div class="dfield"><input type="file" id="'+this.name+'" name="'+this.name+'" accept="'+this.accept+'" upload_size="'+this.upload_size+'" class="field '+this.size+((this.required)?" required":"")+'" /><span class="uh">'+this.userhelp+'</span></div><div class="clearer"></div></div>';
            },
        after_show:function()
        {
            $.validator.addMethod("upload_size", function(value, element,params) 
            {
              return this.optional(element) || (element.files[0].size/1024 < params);
            });
        }     
    }         
);            

谁能帮助我在这个组件中启用这个功能?

【问题讨论】:

    标签: php file joomla upload joomla3.0


    【解决方案1】:

    如果付费延期,您应该向 Form-To-Mail 索取相同的信息。

    【讨论】:

    • Mrunal - 我确实直接询问了插件开发人员,他们的回答是只使用文件上传器的多个实例 - 这不是一个选项。这就是为什么我在这里提出来看看是否可以开发一些东西来专门为插件的单个实例选择多个文件。
    猜你喜欢
    • 1970-01-01
    • 2015-08-12
    • 2023-02-12
    • 1970-01-01
    • 1970-01-01
    • 2012-04-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多