Welcome! Log In Create A New Profile

Advanced

Re: upload module не передает в скрипт post параметры

Valery Kholodkov
February 21, 2011 03:58PM
Используйте директиву upload_pass_form_field:
http://www.grid.net.ru/nginx/upload.en.html#upload_pass_form_field

the_buddha пишет:
> Всем - привет:) Помогите разобраться с
> проблемой в upload_module. Я делаю POST на
> аплоад модуль, в посте кроме файлов
> есть еще просто текстовый поля - но в
> конечном итоге в $_POST только переменные
> относящиеся к аплоаду файлов - а
> остальных моих переменных нет - в чем
> может быть дело? вот простыня
> настройка:
>
>
> location ~ \.php$ {
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /var/www/htdocs$fastcgi_script_name;
> fastcgi_param QUERY_STRING $query_string;
> fastcgi_param REQUEST_METHOD $request_method;
> fastcgi_param CONTENT_TYPE $content_type;
> fastcgi_param CONTENT_LENGTH $content_length;
> include fastcgi_params;
> }
>
> location /upload {
> upload_pass @upload_end_point;
> upload_pass_args on;
> upload_tame_arrays on;
> upload_store /var/www/htdocs/temp;
>
> upload_store_access user:rw group:rw all:r;
>
> # Set specified fields in request body
> upload_set_form_field $upload_field_name.name
> "$upload_file_name";
> upload_set_form_field $upload_field_name.content_type
> "$upload_content_type";
> upload_set_form_field $upload_field_name.path
> "$upload_tmp_path";
>
> # Inform backend about hash and size of a file
> upload_aggregate_form_field "${upload_field_name}_md5"
> $upload_file_md5;
> upload_aggregate_form_field "${upload_field_name}_size"
> $upload_file_size;
>
> upload_cleanup 400 404 499 500-505;
> track_uploads proxied 70s;
> }
>
> location @upload_end_point {
> rewrite ^(.*)$ /u.php last;
> }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,177317,177317#msg-177317
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru


--
Best regards,
Valery Kholodkov

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Re: upload module не передает в скрипт post параметры

Valery Kholodkov February 21, 2011 03:58PM

Re: upload module не передает в скрипт post параметры

the_buddha February 21, 2011 04:05PM

Re: upload module не передает в скрипт post параметры

denchick2704 December 23, 2013 04:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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