Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable form-data body usage #340

Open
RoeiRom opened this issue Feb 25, 2024 · 3 comments
Open

Enable form-data body usage #340

RoeiRom opened this issue Feb 25, 2024 · 3 comments

Comments

@RoeiRom
Copy link

RoeiRom commented Feb 25, 2024

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
Copy link
Member

do you have a code example that you could share?

@RoeiRom
Copy link
Author

RoeiRom commented Feb 27, 2024

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
Copy link
Author

RoeiRom commented Mar 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants