File from Buffers with filename
matthiasg opened this issue ยท 4 comments
matthiasg commented
Form append supports options to allow specifying a filename. This possibility is not passed through. What do you think ?
E.g:
const form = formAutoContent({
file: {
value: Buffer.from('just some content'),
options: {
filename: 'test'
}
}
})
Where file.value would be used
Eomm commented
Yeah, it is for sure useful and doable!
The interface you proposed works as well
Feel free to send a PR if you need it very soon or I will work on it in the next few weeks
Eomm commented
Released in 2.1.0
matthiasg commented
Sorry to not have sent a PR sooner. Thanks !
Eomm commented
Don't worry!
Thank you for the suggestion instead