nginx upload module + nginx upload progress module пустой $_FILES при не пустом $_POST

Vladimir Getmanshchuk vladget на openfilm.com
Сб Июл 24 17:41:14 MSD 2010


сабж.



# nginx -V
nginx version: nginx/0.8.46
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx-error.log --user=www --group=www
--with-file-aio --http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx-access.log --with-http_flv_module
--with-http_geoip_module
--add-module=/var/ports/basejail/usr/ports/www/nginx-devel/work/nginx_mod_h264_streaming-2.2.7
--with-http_stub_status_module
--add-module=/var/ports/basejail/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12
--add-module=/var/ports/basejail/usr/ports/www/nginx-devel/work/nginx_uploadprogress_module-0.8
--with-pcre


# Upload form should be submitted to this location
location /upload-file/ {
 # Pass altered request body to this location
 upload_pass   @php;
 upload_pass_args on;

 upload_limit_rate 500k;

 # Store files to this location
 upload_store /tmp/uploads/;

 # Allow uploaded files to be read only by user
 upload_store_access user:rw;

 # 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}_name" $upload_file_name;
 upload_aggregate_form_field "${upload_field_name}_size" $upload_file_size;

 # Pass matching fields from client to backend
 upload_pass_form_field "^submit$|^description$^file$";
 upload_cleanup 400 404 499 500-505;
 track_uploads proxied 30s;
 }



-- 
Yours sincerely,
Vladimir Getmanshchuk

UNIX System Administrator
Openfilm, LLC

Email: vladget at openfilm.com
Skype: vladimir.getmanshchuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20100724/91eb1ea8/attachment-0001.html>


Подробная информация о списке рассылки nginx-ru