Skip to content

Trying to send custom parameters with each file #126

Description

@csk1nner

Hello there,

Thanks for an excellent uploading tool. I'm trying to figure out how to send custom parameters with each file. I'm able to send parameters that go with all the files via:

this.flow.flowJs.opts.query = {param: "test"}

How do I do this for each file in the collection? I'm trying to send up an orderId so the files can be ordered by the user.

I've tried setting the .query of each file:

this.flow.flowJs.files.forEach(f => {
f.flowObj.opts = {
query: function (flowFile: any, flowChunk: any) {
return {
OrderId: 1
};
}
};
});

But this over-writes some needed parameters that are children of .query.

Any help would be appreciated.

Cheers,

Caleb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions