Welcome! Log In Create A New Profile

Advanced

Re: forward arguments in upload module

June 11, 2011 12:40AM
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?
Subject Author Posted

forward arguments in upload module

vetri June 10, 2011 09:58AM

Re: forward arguments in upload module

Alexander Kunz June 10, 2011 10:52AM

Re: forward arguments in upload module

vetri June 11, 2011 12:40AM

Re: forward arguments in upload module

Francis Daly June 11, 2011 04:48AM

Re: forward arguments in upload module

vetri June 13, 2011 02:12AM

Re: forward arguments in upload module

Francis Daly June 13, 2011 02:22PM

Re: forward arguments in upload module

vetri June 14, 2011 02:07AM

Re: forward arguments in upload module

Francis Daly June 14, 2011 01:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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