# Upload notification

**URL:** <https://www.ruby-forum.com/t/upload-notification/205178>\
**Category:** NGINX\
**Created:** [March 31, 2011, 7:11am UTC](https://www.ruby-forum.com/t/upload-notification/205178 "2011-03-31T07:11:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 31, 2011, 7:11am UTC](https://www.ruby-forum.com/t/upload-notification/205178/1 "2011-03-31T07:11:19Z")

</div>

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:

> **[upload notification](https://forum.nginx.org/read.php?2,187033,187033#msg-187033)**
>
> 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?

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [March 31, 2011, 12:05pm UTC](https://www.ruby-forum.com/t/upload-notification/205178/2 "2011-03-31T12:05:12Z")

</div>

Yes:

upload\_pass\_args on;

[http://www.grid.net.ru/nginx/upload.en.html#upload\_pass\_args](http://www.grid.net.ru/nginx/upload.en.html#upload_pass_args)

----- vetri [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [March 31, 2011, 2:14pm UTC](https://www.ruby-forum.com/t/upload-notification/205178/3 "2011-03-31T14:14:50Z")

</div>

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [March 31, 2011, 1:05pm UTC](https://www.ruby-forum.com/t/upload-notification/205178/4 "2011-03-31T13:05:41Z")

</div>

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:

> **[Re: upload notification](https://forum.nginx.org/read.php?2,187033,187084#msg-187084)**
>
> 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?

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [April 1, 2011, 7:36am UTC](https://www.ruby-forum.com/t/upload-notification/205178/5 "2011-04-01T07:36:29Z")

</div>

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:

> **[Re: upload notification](https://forum.nginx.org/read.php?2,187033,187286#msg-187286)**
>
> 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?

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [April 1, 2011, 12:49pm UTC](https://www.ruby-forum.com/t/upload-notification/205178/6 "2011-04-01T12:49:03Z")

</div>

----- vetri [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [April 1, 2011, 11:23am UTC](https://www.ruby-forum.com/t/upload-notification/205178/7 "2011-04-01T11:23:43Z")

</div>

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:

> **[Re: upload notification](https://forum.nginx.org/read.php?2,187033,187317#msg-187317)**
>
> 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?

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [April 1, 2011, 2:16pm UTC](https://www.ruby-forum.com/t/upload-notification/205178/8 "2011-04-01T14:16:50Z")

</div>

You can find a full description of this module here

[http://www.grid.net.ru/nginx/upload.en.html](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 _/ /_

---

<div class="post-metadata">

**Author:** ![vetri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/3ab097/32.png) [@vetri](https://www.ruby-forum.com/u/vetri)\
**Post date:** [April 1, 2011, 1:37pm UTC](https://www.ruby-forum.com/t/upload-notification/205178/9 "2011-04-01T13:37:16Z")

</div>

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:

> **[Re: upload notification](https://forum.nginx.org/read.php?2,187033,187343#msg-187343)**
>
> 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?
