Multer, Formdata #626
Answered
by
Twitch0125
Melbourneandrew
asked this question in
Q&A
-
How can I use something like (Multer)[https://www.npmjs.com/package/multer] to parse FormData, specifically to handle file uploads? The files only need to remain in memory as after the client uploads them, they will be sent to Cloudflare Images. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
Twitch0125
May 10, 2023
Replies: 1 comment 1 reply
-
I realize this is a super late answer, but you can use readMultipartFormData from h3: const body = await readMultipartFormData(event);
const file = body[0] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
atinux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I realize this is a super late answer, but you can use readMultipartFormData from h3: