i am offering my site visitors a download of zip file. when someone
downloads it, i want to increment a counter and update db. how do i do
that?
I should think it would be obvious -- just put an increment routine in
the action that generates the zip file. Or if it's a static file, use
your Web server's access logs.
User clicks link → Serverside method “download” is triggered → “download” methods does downloads = downloads + 1, save to db, and then return file to download