Skip to content

贡献一个上传时动态增加表单参数方法 #26

@xingzheone

Description

@xingzheone

很多上传在刚开始的时候不能确定那些参数. 在上传的时候需要动态的添加参数
这里没有修改upload.js的源文件. 只是把 createInputs 提出来使用了下.

.change(function (files) {
                for (var i = 0; i < files.length; i++) {
                    console.log('you are selecting ' + files[i].name + ' Size: ' + files[i].size);
                }
                this.form.append(createInputs({'good':'hahdf'}));
                this.submit()
            }).success(function (response) {
                alert(response);
            });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions