diff --git a/src/utils/content_disposition.rs b/src/utils/content_disposition.rs index f2c1e712a9b7516e6c811f3b53d4d3b3284ebe39..f93f6728fd33d8bbc110ab1f0d0b08dab86ea23b 100644 --- a/src/utils/content_disposition.rs +++ b/src/utils/content_disposition.rs @@ -16,7 +16,13 @@ pub(crate) fn content_disposition_type(buf: &[u8], _content_type: &Option<String }; match file_type.matcher_type() { - MatcherType::Image | MatcherType::Audio | MatcherType::Text | MatcherType::Video => "inline", + MatcherType::Image | MatcherType::Audio | MatcherType::Text | MatcherType::Video => { + if file_type.mime_type().contains("svg") { + "attachment" + } else { + "inline" + } + }, _ => "attachment", } }