ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx upload module + nginx upload progress modu le ÐÕÓÔÏÊ $_FILES ÐÒÉ ÎÅ ÐÕÓÔ ÏÍ $_POST



ÓÁÂÖ.



# 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@xxxxxxxxxxxx
Skype: vladimir.getmanshchuk

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.