faas-js-runtime icon indicating copy to clipboard operation
faas-js-runtime copied to clipboard

Enable form-data body usage

Open RoeiRom opened this issue 1 year ago • 5 comments

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

RoeiRom avatar Feb 25 '24 19:02 RoeiRom

do you have a code example that you could share?

lholmquist avatar Feb 27 '24 16:02 lholmquist

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 avatar Feb 27 '24 22:02 RoeiRom

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

RoeiRom avatar Mar 23 '24 22:03 RoeiRom

were you able to find a solution to this?

lholmquist avatar Mar 20 '25 12:03 lholmquist

nope i ditched it unfortunately :( do you have a solution

RoeiRom avatar Mar 28 '25 10:03 RoeiRom