-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Help - how does multipart works under the hood #1070
Comments
Yes, by the nature of stream it is always send by chunk. The only difference is the chunk size.
By default, using the Stream API should be process by chunk.
You should probably post the code you test. There is no way to ensure your implementation is doing things right.
Since your setup involve That maybe the reason why your test always received the whole payload instead of chunk. Refs: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_request_buffering |
@climba03003 |
Possibly, yes. If you want to test things work properly, you should reduce the intermediate parts (e.g. nginx) between client and server. |
💬 Question here
How does
@fastify/multipart
work?I'm trying to upload a file approximately 20-50 mib size.
I'm planning on using multipart as a content type, so I used
@fastify/multipart
.But, I have
nginx
reverse proxy, so I'm limited to 1mb to the request size.My question is does multipart send the data in chunks? does it do that for me? my testing saying it doesn't, but just wanted to ask to make sure.
The text was updated successfully, but these errors were encountered: