atom feed8 messages in ru.sysoev.nginxRe: forward arguments in upload module
FromSent OnAttachments
vetriJun 10, 2011 6:58 am 
Alexander KunzJun 10, 2011 7:50 am 
vetriJun 10, 2011 9:40 pm 
Francis DalyJun 11, 2011 1:46 am 
vetriJun 12, 2011 11:11 pm 
Francis DalyJun 13, 2011 11:20 am 
vetriJun 13, 2011 11:07 pm 
Francis DalyJun 14, 2011 10:30 am 
Subject:Re: forward arguments in upload module
From:vetri (ngin@nginx.us)
Date:Jun 10, 2011 9:40:00 pm
List:ru.sysoev.nginx

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