nodeshift / faas-js-runtime

A function invocation framework for Node.js and TypeScript
Apache License 2.0
15 stars 19 forks source link

Enable form-data body usage #340

Open RoeiRom opened 9 months ago

RoeiRom commented 9 months ago

Hi there, I'm trying to use form-data as body in order to upload files to the function, but it seems that the body accepts the data but doesn't parse it well and cant understand even data which is not a file. pls help me

lholmquist commented 9 months ago

do you have a code example that you could share?

RoeiRom commented 9 months ago

Hi there adding link to the sample repository, with pictures from postman. The code is very basic https://github.com/RoeiRom/TS-Function-Form-Data/tree/main

image

and the logs from the console

image

you can push your code to the repository if you find the solution lol

RoeiRom commented 8 months ago

is it possible to use @fastify/multipart for that?