-
Notifications
You must be signed in to change notification settings - Fork 388
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
why upload_pass_form_field
does not work
#140
Comments
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: 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 |
@amlan-sw ,I get it,thanks,at present only the case |
You can also compile nginx without PCRE2 using |
the version of nginx is 1.22.0 and use the lastest nginx-upload-module,this is my nignx conf:
`
`
the "deal.php" only prints the global variable $_REQUEST,
and I try to use POSTMAN to send the post request,get the following result:
since I set "upload_pass_form_field" with "^.*$",then all the post fields will be appended,why can't field of "submit" occur?
The text was updated successfully, but these errors were encountered: