Uploaded file gets corrupted when using GRPC custom middleware in tyk-gateway 2.7.0

I also checked the mime type of my files using file -I <filepath>

It seems to work as long as the result is not xxx/yyy: charset=binary