Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to send custom parameters with each file #126

Open
csk1nner opened this issue Feb 18, 2025 · 0 comments
Open

Trying to send custom parameters with each file #126

csk1nner opened this issue Feb 18, 2025 · 0 comments

Comments

@csk1nner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant