aonghas
aonghas
NNuxt
Created by aonghas on 10/5/2024 in #❓・help
Nuxt UI Docs site command palette search close button
No description
4 replies
NNuxt
Created by aonghas on 2/4/2023 in #❓・help
Sending formData to /server with files and parsing body
Hi there, I'm tying to send a file from browser to /server /api so that I can inject some header information server side and proxy that request to an external API, however the request always gets corrupted in the process. I can hit the external api fine so I know it's somewhere in the defineEventHandler() function. I have a feeling that it might be to do with the readBody() method but I've tried both readRawBody() and readMultipartFormData() and neither work. Basically I just want to pass the formData from the Request straight into another $fetch within the server route without changing the data. Hope that makes sense. Thanks!
6 replies