mscdex / connect-busboy

Connect middleware for busboy
MIT License
155 stars 25 forks source link

Extending this to middleware that automatically fetches all attached files and fields #4

Closed jhorbulyk closed 9 years ago

jhorbulyk commented 10 years ago

I stumbled across this middleware because I am looking for a middleware that automatically grabs fields and attached files from a multipart upload but keeps the file contents available in memory (i.e. doesn't write them to disk). It looks like it is possible to extend this middleware to do the job. However, this seems like a very general problem and so I'm wondering if it makes sense to extend this middleware with this functionality. Thoughts?

mscdex commented 10 years ago

FWIW I started on a middleware that can let you do this, although you have to specify the fields up front.

mscdex commented 9 years ago

There is also multer which supports buffering in-memory now too.