Skip to content

Multer, Formdata #626

Answered by Twitch0125
Melbourneandrew asked this question in Q&A
Oct 29, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I realize this is a super late answer, but you can use readMultipartFormData from h3:

    const body = await readMultipartFormData(event);
    const file = body[0]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@atinux
Comment options

atinux Jun 7, 2023
Collaborator

Answer selected by atinux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants