requests with multipart/form-data payload are not being streamed #14162
Replies: 2 comments
-
Hi @RAVIPATISRIVIDYA ! |
Beta Was this translation helpful? Give feedback.
-
@nowNick we are using oauth 2.0 authentication. I have a follow-up question. I have the request-size-limiting plugin enabled at the cluster level, and if I enable streaming for the route (konghq.com/request-buffering: 'false'), will Kong stream the request, or will it buffer the request because the request-size-limiting plugin reads the body? - https://github.com/Kong/kong/blob/master/kong/plugins/request-size-limiting/handler.lua#L53 |
Beta Was this translation helpful? Give feedback.
-
We are sending a request with the multipart/form-data content type, for a file upload. Buffering has been disabled for the route using this annotation - konghq.com/request-buffering: 'false'.
However, the request is not being streamed to the upstream service as expected. Instead, Kong appears to be reading the entire request body content before proxying it to the upstream.
The API only has the ACL, authentication, and rate-limiting plugins enabled, which, to my knowledge, do not enforce buffering.
kong version - 3.7.1
Can anyone help on this.
Beta Was this translation helpful? Give feedback.
All reactions