Eomm/form-auto-content

File from Buffers with filename

matthiasg opened this issue ยท 4 comments

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 ๐Ÿ‘

Sorry to not have sent a PR sooner. Thanks !

Eomm commented

Don't worry!

Thank you for the suggestion instead ๐Ÿ‘