forward arguments in upload module

vetri nginx-forum at nginx.us
Sat Jun 11 08:40:36 MSD 2011


mr kunz,

  Thanks for the reply . i am not using form to upload files. i am using
java client to send files to nginx via post operation.

 even though i tried what u said there is no notification at the backend
.here is the config


worker_processes  20;

error_log  /home/vetriselvanm/Desktop/upload/error.log info;



events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    server {
        listen       8085;
        client_max_body_size 0;
      
        
        
        # Upload form should be submitted to this location
         location /zsupload {
            # Pass altered request body to this location
            upload_pass   /test;

            # Store files to this directory
            # The directory is hashed, subdirectories 0 1 2 3 4 5 6 7 8
9 should exist
            upload_store /home/vetriselvanm/Desktop/upload;

            # Allow uploaded files to be read only by user
            upload_store_access user:rw group:rw all: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.size 
"$upload_file_size";

            upload_pass_form_field "^submit$|^description$";
        }

    # Pass altered request body to a backend
        location /test {
           proxy_pass   http://localhost:8090;
         
        }

    }
}
in that port 8090 one server is running to get notification and it will
get key value and it will print it.

what do i do?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,205669,205829#msg-205829




More information about the nginx mailing list