London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

UnifiedFile access events?

Vote:
 

Hello

I posted this in the EPiServer 5r2 forum but maybe this is a more correct place.

Hello

I need to log all user access (read via click) to UnifiedFile files (.zip files for example), just a simple log access counter. Problem is I can't seem to find anyway to hook up to a relevent event. Anyone got any ideas or workarounds?

//Regards Patrik

 

#55125
Nov 18, 2011 11:21
Vote:
 

Hi Patrik

I would create a custom StaticFileHandler and add the logic there. See this blog post for an example: http://www.markeverard.com/blog/2010/09/15/using-the-dynamicdatastore-to-count-file-downloads/.

Hope this helps.

Frederik

#55129
Nov 18, 2011 12:17
Vote:
 

Thank you Frederik, I will try it out.


//Regards

#55130
Nov 18, 2011 12:48
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.