diff options
Diffstat (limited to 'www/functions')
| -rw-r--r-- | www/functions/func_download.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/www/functions/func_download.php b/www/functions/func_download.php index d9be089..26b25b1 100644 --- a/www/functions/func_download.php +++ b/www/functions/func_download.php @@ -106,6 +106,8 @@ function download_file($db, $file_id){ if(!preg_match("/^image\/.+/", $file_mime)){ header("Content-Disposition: attachment; filename=\"".$file_name."\""); + } else { + header("filename=".$file_name.""); } header("Content-Length: ".$file_size); set_time_limit(0); |
