# Catch success download file event

**URL:** <https://www.ruby-forum.com/t/catch-success-download-file-event/217879>\
**Category:** NGINX\
**Created:** [March 15, 2012, 10:16am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879 "2012-03-15T10:16:58Z")\
**Posts on this page:** 6\
**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 15, 2012, 10:16am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879/1 "2012-03-15T10:16:58Z")

</div>

Hi Guys,

I have nginx server host some static files.

How can I catch (trigger) when users successfully download a file ?!  
That means the size of downloaded file equals to the size of the file on  
server.

I mean user have fully downloaded a file.

Sorry for my bad english.

Thank you.

Atrus@

Posted at Nginx Forum:

> **[Catch success download file event.](https://forum.nginx.org/read.php?2,223870,223870#msg-223870)**
>
> Hi Guys, I have nginx server host some static files. How can I catch (trigger) when users successfully download a file ?! That means the size of downloaded file equals to the size of the file on server. I mean user have fully downloaded a file.

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [March 16, 2012, 4:18am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879/2 "2012-03-16T04:18:42Z")

</div>

Guy !

Anyone show me the solution plz.

Thanks so much.

Atrus@

Posted at Nginx Forum:

> **[Re: Catch success download file event.](https://forum.nginx.org/read.php?2,223870,223934#msg-223934)**
>
> Hi Guys, I have nginx server host some static files. How can I catch (trigger) when users successfully download a file ?! That means the size of downloaded file equals to the size of the file on server. I mean user have fully downloaded a file.

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [March 16, 2012, 4:32am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879/3 "2012-03-16T04:32:23Z")

</div>

On 03/15/2012 08:18 PM, atrus wrote:

> Anyone show me the solution plz.

Seems like you asking about _post\_action_

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [March 16, 2012, 4:44am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879/4 "2012-03-16T04:44:07Z")

</div>

Thanks. I’ll try the post\_action term.

Atrus@

Posted at Nginx Forum:

> **[Re: Catch success download file event.](https://forum.nginx.org/read.php?2,223870,223937#msg-223937)**
>
> Hi Guys, I have nginx server host some static files. How can I catch (trigger) when users successfully download a file ?! That means the size of downloaded file equals to the size of the file on server. I mean user have fully downloaded a file.

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [June 21, 2012, 9:11am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879/5 "2012-06-21T09:11:20Z")

</div>

Found this :

[http://www.linuxbyexamples.net/linux/nginx/nginx-post-action-to-trigger-successfully-download](http://www.linuxbyexamples.net/linux/nginx/nginx-post-action-to-trigger-successfully-download)

Thanks.

Atrus@

Posted at Nginx Forum:

> **[Re: Catch success download file event.](https://forum.nginx.org/read.php?2,223870,227753#msg-227753)**
>
> Hi Guys, I have nginx server host some static files. How can I catch (trigger) when users successfully download a file ?! That means the size of downloaded file equals to the size of the file on server. I mean user have fully downloaded a file.

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [March 16, 2012, 4:38am UTC](https://www.ruby-forum.com/t/catch-success-download-file-event/217879/6 "2012-03-16T04:38:34Z")

</div>

On 03/15/2012 08:31 PM, Roman V. wrote:

> On 03/15/2012 08:18 PM, atrus wrote:
> 
> > Anyone show me the solution plz.
> 
> Seems like you asking about _post\_action_  
> [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/HttpCoreModule#post_action)
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)  
> Just your red previous question. While I’ve attempted to solve this  
> issue got proper result only after parsing logs.
