octet-stream / form-data

Spec-compliant FormData implementation for Node.js
https://www.npmjs.com/package/formdata-node
MIT License
142 stars 17 forks source link

[feat request]: an util extract multipart form-data from request object #77

Closed JayMGurav closed 10 months ago

JayMGurav commented 10 months ago

This package was really helped me generating file object from the to push it to external service which was very particular. It would really be great if we could have a parser that could parse request object to extract multipart, form-data object

octet-stream commented 10 months ago

Hello! You mean multipart/form-data parser? There are already plenty of those, like multer and busboy (or it's fork by fastify team @fastify/busboy). Also, Node.js has fetch API support since v18 or so, and you can parse form-data bodies using BodyMixin

JayMGurav commented 10 months ago

Oh that's great if Node supports it natively. Thanks!