it'll be in the request.environ dictionary.

do you use proxy_pass or uwsgi_pass in the nginx config?

On 29 May 2015 at 11:01, Jerry OELoo <[email protected]> wrote:
> Hi.
> I am using Nginx + uWSGI + Flask for web service.
> Now use Nginx upload module to support file upload. and set file name in 
> X-FILE.
>
> proxy_pass_request_headers on;
> proxy_set_header           X-FILE $request_body_file;
>
> In Flask api:
>
> @app.route('/upload', methods=['POST'])
> def Upload():
>
>     app.logger.debug(dir(request))
>
> But I do not know where I can get X-FILE in uWSGI or Flask?
>
> --
> Rejoice,I Desire!
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi



-- 
damjan
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to