Hi,
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
Apologies for the delay. Realized I did not reply to you.
I did try it out with no luck. Consulted our engineering team and got feedback that file upload and streaming is different stuff.
flush_interval setting is for response body, file upload is a request process
The only thing we could propose for now, is a custom Go plugin, which forces Tyk to stream body to the upstream, instead of fully reading it. When you write response from within the Go plugin, it breaks middleware chain and does not run our standard proxy code Golang plugins.