Welcome! Log In Create A New Profile

Advanced

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

Vladimir Getmanshchuk
July 24, 2010 09:42AM
сабж.



# 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@openfilm.com
Skype: vladimir.getmanshchuk
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

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

Vladimir Getmanshchuk July 24, 2010 09:42AM

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

Boris Dolgov July 24, 2010 10:48AM

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

Vladimir Getmanshchuk July 26, 2010 02:48PM

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

Boris Dolgov July 26, 2010 03:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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