Closed men232 closed 3 years ago
Can you share a code sample summarising your use case ?
It does not make sense, just look here:
// index.js
busboy
.on('field', onField.bind(null, fields))
.on('file', customOnFile || onFile.bind(null, filePromises))
Base on your docs, filePromises should be passed to customOnFile callback.
const {fields} = await asyncBusboy(ctx.req, {
onFile: function(filePromises, fieldname, file, filename, encoding, mimetype) {
uploadFilesToS3(file);
}
});
I am still not getting what is your issue. Can you post the actual code ?
Have issue with filePromises. This arg not passing to custom onFile callback