Nginx files upload streaming with tyk gateway

We are using tyk gateway in our application. We have a problem in file upload that tyk gateway waits for the whole file body to be uploaded before passing it to the upstream. This causes problems for me, because I want to track upload progress at my application. Any idea how to configure tyk in order to stream file body in real time to the upstream

Something like proxy_request_buffering in nginx.


Hi @Selvakumar_P and welcome to the community.

You can set a header:

Content-Type: text/event-stream

which will engage streaming mode at the gateway. this is meant primarily for SSE so may not work in your specific case.

thanks, G.