Always download SVG as attachment

This commit is contained in:
Kijin Sung 2026-02-20 21:57:07 +09:00
parent bf2df84d0f
commit 91744ec87c

View file

@ -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';
}