BackendStack21 / fast-gateway

Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
MIT License
311 stars 35 forks source link

fast gateway to support multipart form data #59

Closed nidhindev closed 3 years ago

nidhindev commented 3 years ago

Description:

Currently form data with or with out multipart file is not able to route via gateway to backend services

To Reproduce Steps to reproduce the behavior:

  1. Use postman, send form data with or with file to the gateway
  2. Fast gateway forwards the request to respective target service but by trimming form data and the file

Expected behavior Fast gateway able to forward the request together with form data and multi part file

jkyberneees commented 3 years ago

HI @nidhindev , thanks for reaching out for help.

Are you using the body-parser middleware in your code? Can you paste here a similar gateway configuration to the one you are using?

Thanks

jkyberneees commented 3 years ago

I am closing this issue because of inactivity, please feel free to re-open it if required.

HoaX7 commented 3 years ago

Hi, i have the same issue, i'm using body-parser, and parse-multipart. but when i try to require parse-multipart it throws an error str.split() is not a function