Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express multipart/form-data multer files #928

Open
2 tasks done
Navino16 opened this issue Jul 26, 2023 · 1 comment
Open
2 tasks done

Express multipart/form-data multer files #928

Navino16 opened this issue Jul 26, 2023 · 1 comment

Comments

@Navino16
Copy link

Navino16 commented Jul 26, 2023

Checks

Describe the bug (be clear and concise)

When proxying a POST multipart/form-data request that have been processed by multer, files are not sent even with the code from #896

Step-by-step reproduction instructions

1. Install express
2. Add multer to any route to catch file
3. After that route add http-proxy-middleware :

app.use('/api/v2/', MyRoutes);
app.all('*', createProxyMiddleware({
  target: 'https://myURL.com/',
  changeOrigin: true
}));

4. On first route, call next() function to send request to proxy middleware

Expected behavior (be clear and concise)

Request should be proxied whit files

How is http-proxy-middleware used in your project?

myproject0.0.1 /home/****/perso/myproject
└── http-proxy-middleware@3.0.0-beta.1

What http-proxy-middleware configuration are you using?

{
  target: 'https://myURL.com/',
  changeOrigin: true,
}

What OS/version and node/version are you seeing the problem?

Ubuntu 20.04.6 LTS with NodeJS v19.9.0

Additional context (optional)

No response

@thuongvovan
Copy link

I have got the same problem. Someone give us an advice please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants