These are private file.<br><br>Kamal<br>Your solution worked. <br><br>Thanks.<br>Austin<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 9:34 AM, Gordon Heydon <span dir="ltr"><<a href="mailto:gordon@heydon.com.au" target="_blank">gordon@heydon.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Are the files that are being downloaded private or public. If they are public Drupal is being kept out of the loop, and apache/nginx is handling the request, and not Drupal.<br>
<span class="HOEnZb"><font color="#888888"><br>
Gordon.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 28/11/2012, at 2:49 PM, Austin Einter <<a href="mailto:austin.einter@gmail.com">austin.einter@gmail.com</a>> wrote:<br>
<br>
> Hi All<br>
> This is a simple problem, please let me know how to go about it.<br>
><br>
> In a custom module, depending on search keywords, I show number of documents in a table to users. When users click on document link, the document gets downloaded.<br>
><br>
> For me, I have set a download limit for each user as 10. So one user can download maximum of 10 documents per day.<br>
><br>
> When user clicks on document link, file is getting downloaded. But during that time none of my custom module's function is getting executed so I am not able to keep track of which user has downloaded how many documents, so I am not able to limit the downloads.<br>
><br>
> Can somebody help me , when the user clicks on a document link, how can I force at least one function in my custom module should be invoked.<br>
><br>
> Or if there is some other alternative to keep track of documents downloaded per user, please let me know.<br>
><br>
> Thanks<br>
> Austin<br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> --<br>
> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br></div>