From 91744ec87cafb77cd3afc9dcb94b64ffd4bbf171 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 20 Feb 2026 21:57:07 +0900 Subject: [PATCH] Always download SVG as attachment --- modules/file/file.controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/file/file.controller.php b/modules/file/file.controller.php index c42aaf6dc..3f24cae0c 100644 --- a/modules/file/file.controller.php +++ b/modules/file/file.controller.php @@ -551,7 +551,7 @@ class FileController extends File { $download_type = 'inline'; } - if (Context::get('force_download') === 'Y') + if ($mime_type === 'image/svg+xml' || Context::get('force_download') === 'Y') { $download_type = 'attachment'; }