nginx 上传模块

upload_pass /cgi-bin/upload;
      upload_cleanup 400 404 499 500-505;
      upload_store /tmp/mihttpd/.upload_tmp;
      upload_store_access user:rw group:rw all:rw;
      upload_max_file_size 0;
      upload_limit_rate 0;
      upload_set_form_field "nginx_file_name" $upload_file_name;
      upload_set_form_field "nginx_file_content_type" $upload_content_type;
      upload_set_form_field "nginx_file_path" $upload_tmp_path;
      upload_aggregate_form_field "nginx_file_md5" $upload_file_md5;
      upload_aggregate_form_field "nginx_file_size" $upload_file_size;
      upload_pass_form_field "^(?!nginx_file)";
      upload_pass_args on;

发表新评论