diff options
-rw-r--r-- | fetch.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -74,6 +74,10 @@ header('Last-Modified: '.date('r',filemtime($FILE))); header('Content-Length: '.filesize($FILE)); + //application mime type is downloadable + if(substr($MIME,0,11) == 'application'){ + header('Content-Disposition: attachment; filename="'.basename($FILE).'"'); + } $fp = @fopen($FILE,"rb"); if($fp){ |