diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index 92572b6effb7d0f8c4d6f9ce773b29fdc160c573..f41339bdc9ac0583954ee9fb0562187774f56468 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -133,7 +133,7 @@ function sendFile($file,$mime,$cache){
 
     $chunk = ($len > CHUNK_SIZE) ? CHUNK_SIZE : $len;
     while (!feof($fp) && $chunk > 0) {
-      @set_time_limit(); // large files can take a lot of time
+      @set_time_limit(30); // large files can take a lot of time
       print fread($fp, $chunk);
       flush();
       $len -= $chunk;