Welcome! Log In Create A New Profile

Advanced

Simple proxy_pass settings are invalidating/deleting multipart file data sent by POST

Denis Papathanasiou
October 06, 2018 05:18PM
As noted here -- https://github.com/gin-gonic/gin/issues/1582 -- I have a
simple web app that handles multipart form file uploads correctly on its
own, but when I put it behind a simple proxy_pass configuration like below,
the underlying application sees a null value where the file form data was.

This is the configuration I am using:

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass https://127.0.0.1:9001;
}

I have also experimented with setting setting proxy_request_buffering to
'off' but still gave me the same result.

If it is not a problem with the wen framework (and based on the logs I
suspect it is not), how can I update my nginx config so it works properly?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Simple proxy_pass settings are invalidating/deleting multipart file data sent by POST

Denis Papathanasiou October 06, 2018 05:18PM

Re: Simple proxy_pass settings are invalidating/deleting multipart file data sent by POST

Francis Daly October 06, 2018 06:36PM

Re: Simple proxy_pass settings are invalidating/deleting multipart file data sent by POST

Denis Papathanasiou October 07, 2018 06:56PM

Re: Simple proxy_pass settings are invalidating/deleting multipart file data sent by POST

Francis Daly October 08, 2018 10:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready