Try our conversational search powered by Generative AI!

Hook into the download event for media files



I would like to know, if there are any events exposed that i can hook into, on the dowload of media (pdf, docx etc.). 

In good old UnifiedFile world, we used to have these events but not sure about the current MediaData. I managed to find an article on episerver world describing to implement IRenderTemplate and IHttpHandler but not sure about the last bits...

//Do custom processing

You can base your custom transmitter implementation on either EPiServer.Web.BlobHttpHandler or EPiServer.Web.MediaHandlerBase, 
and use the TransmitFile method for transmittance of file data.

Any pointers?

Nov 26, 2018 16:23

Hi Tashir,

I think this blog post should point you in the right direction:


Edited, Nov 26, 2018 18:10
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.