November Happy Hour will be moved to Thursday December 5th.

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.