0

flowobj.opts.query を使用したファイルごとに異なるパラメーターを渡す必要がありますが、それはすべてのファイルに追加されます。パラメータは、ファイルのアップロードごとに異なる必要があります

angular.forEach($flow.files, function (file, key) {

    file.flowObj.opts.query[file.DocumentName.concat("-DocumentName")] = file.DocumentName;
    file.flowObj.opts.query[file.DocumentExtension.concat("-DocumentExtension")] = file.DocumentExtension;
    file.flowObj.opts.query[file.DocumentType.concat("-DocumentType")] = file.DocumentType;
    file.flowObj.opts.query[vm.case.Id.concat("-CaseId")] = vm.case.Id;

});

$flow.upload();
4

2 に答える 2