Upload notification

hi all,

  i am uploading files via nginx upload module.can i pass query

parameters to tomcat which is running on backend after every file upload
is completed? can i do that via configuration?

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

Yes:

upload_pass_args on;

http://www.grid.net.ru/nginx/upload.en.html#upload_pass_args

----- vetri [email protected] wrote:

hi all,

  i am uploading files via nginx upload module.can i pass query

parameters to tomcat which is running on backend after every file upload
is completed? can i do that via configuration?


Regards,
Valery K.

Set error log level to info. After that the module will start logging
which file it started/stopped uploading, it’s content type and temporary
path.

----- vetri [email protected] wrote:

Mr Valery,
thanks for the reply,and i have one more doubt when i upload
file ,name ,content-type ,path of that file will be stored in
upload_set_form_field
($upload_file_name,$upload_file_type,$upload_tmp_path).can i print this
variable in log file.can i use
seperate log file for to print this variable.if it is possible how can i
do that? .because there is default access log in nginx and i tried to
print variable in seperate log file but it is printing that default
access log .


Regards,
Valery K.

Mr Valery,
thanks for the reply,and i have one more doubt when i upload
file ,name ,content-type ,path of that file will be stored in
upload_set_form_field
($upload_file_name,$upload_file_type,$upload_tmp_path).can i print this
variable in log file.can i use
seperate log file for to print this variable.if it is possible how can i
do that? .because there is default access log in nginx and i tried to
print variable in seperate log file but it is printing that default
access log .

thanks for the reply

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

mr Valery,

       Thanks for Information .now I am Seeing the information of

that file is getting printed in the log file .when i chenge log level to
info it is printing automatically info into log file.In this upload
module i want to add checksum and size of the file of that file to get
printed in that log file . can i do that?if it is , how? because you
have written upload_aggregate_form_field directive ($upload_file_md5
,$upload_file_size).these variables are used to store checksum and file
size .i want these values to get printed in that log file.if it
possible?

Thanks For the Reply

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

----- vetri [email protected] wrote:

possible?
You can’t log aggregate variables, because there could be many files per
request and specifying $upload_file_md5 in log format would be
ambiguous.

An alternative could be a directive in upload module that logs a line
per file into the error log. May be one day I’ll implement it.


Regards,
Valery K.

mr valery,

      can i customize the log in nginx.i want to change the

variables in default nginx log ?is that possible?

     advanced thanks

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

You can find a full description of this module here

http://www.grid.net.ru/nginx/upload.en.html

A lot of your questions a desribed there…

MD5 Sum … Take a look there

*syntax: *upload_aggregate_form_field / /

mr valery,

        if i can not log aggregate varibles.is there any other way

to print checksum and file size of the file .when every file is uploaded
i want to send $upload_file_name,$upload_tmp_path and $upload_file_md5
variable to backend server like sending query parameters .can i do that
via configuration?

thanks for reply

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs