Code Monkey home page Code Monkey logo

Comments (3)

amlan-sw avatar amlan-sw commented on September 28, 2024 1

I have same problem. I think the problem is nginx 1.22.0 now use PCRE2 as default regex engine and http_upload_module maybe must be update to follow new regex engine to prcess upload_pass_form_field.

for my need, I have "hack" solution to bypass upload_pass_form_field, meaning all form wiill be passed, maybe just like your configuration:

upload_pass_form_field "^.*$";

you just want to pass all form field

the patch: at file ngx_http_upload_module.c

line 1584:
before
if(pass_field && u->field_name.len != 0) {

just add:

pass_field = 1;

rebuild nginx and now all field will be pass, and for future nginx.conf, you don need use upload_pass_form_field

from nginx-upload-module.

dup2 avatar dup2 commented on September 28, 2024 1

You can also compile nginx without PCRE2 using --without-pcre2 and --with-ld-opt="-lpcre" to force PCRE usage. This restores the old regexp match behaviour

from nginx-upload-module.

chenm0520 avatar chenm0520 commented on September 28, 2024

@amlan-sw ,I get it,thanks,at present only the case

from nginx-upload-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.