Open Alab2022 opened 1 year ago
Please create a repro example.
I am having the same issue. It is calling the handler for each file uploaded.
So If I upload 2 files, it calls twice. If I upload 3 files, it calls three times.
Just tried to send more files using the handler notation for an action that specs upload files - connected via nats to the central API.
` const fastestValidatorParams = { $$strict: false, };
hooks: { before, after, }, params: fastestValidatorParams, rest: { type: "multipart", method: "POST", path: "myUpload", }, handler, }, `
It should not be hard to reproduce.
When the request come with files and data the handler(ctx) function call twice but the response comes one time how we handle this. @icebob My request payload is like below, Payload : { files[] : [file1,file2] , name : "testing" }
My Functions is