diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index cdcc4dd21027a485f1aa8fed71ac7810adf4354f..c39e2117375b6dd188dc44a66b8ddfa1e88db56c 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -65,6 +65,8 @@
     exit;
   }
 
+  $ORIG = $FILE;
+
   //handle image resizing/cropping
   if((substr($MIME,0,5) == 'image') && $WIDTH){
     if($HEIGHT){
@@ -75,7 +77,18 @@
   }
 
   // finally send the file to the client
-  sendFile($FILE,$MIME,$CACHE);
+  $data = array('file'   => $FILE,
+                'mime'   => $MIME,
+                'cache'  => $CACHE,
+                'orig'   => $ORIG,
+                'ext'    => $EXT,
+                'width'  => $WIDTH,
+                'height' => $HEIGHT);
+
+  $evt = new Doku_Event('MEDIA_SENDFILE', $data);
+  if ($evt->advise_before()) {
+    sendFile($data['file'],$data['mime'],$data['cache']);
+  }
 
 /* ------------------------------------------------------------------------ */