Hello,
I’ve worked on this topic following up on this ticket: https://community.tyk.io/t/multipart-streaming-mode/7264
I ended up forking Tyk to apply my modifications.
Now, this fork of tyk gateway 5.2.6 support the streaming by modifying the condition in the reverse_proxy.go file if the content type is of type “multipart/*”.
This version can handle large file uploads without side effects in memory, and the flow are pushed directely to the backend, part by part.
I also modified some code on the on_success / on_error side to avoid buffering the payload.
Available if you want more information.
PS: I haven’t pushed a pull request yet.