From fedd18eb89db0f9a6b8047cd2a5a7d716cca9544 Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 20 Jan 2023 02:59:59 +0200 Subject: LibCore: Add MIME type string for TGA files --- Userland/Libraries/LibCore/MimeData.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibCore/MimeData.cpp b/Userland/Libraries/LibCore/MimeData.cpp index b5b31323be..d679ea53b3 100644 --- a/Userland/Libraries/LibCore/MimeData.cpp +++ b/Userland/Libraries/LibCore/MimeData.cpp @@ -71,6 +71,8 @@ StringView guess_mime_type_based_on_filename(StringView path) return "image/x-qoi"sv; if (path.ends_with(".svg"sv, CaseSensitivity::CaseInsensitive)) return "image/svg+xml"sv; + if (path.ends_with(".tga"sv, CaseSensitivity::CaseInsensitive)) + return "image/x-targa"sv; if (path.ends_with(".md"sv, CaseSensitivity::CaseInsensitive)) return "text/markdown"sv; if (path.ends_with(".html"sv, CaseSensitivity::CaseInsensitive) || path.ends_with(".htm"sv, CaseSensitivity::CaseInsensitive)) -- cgit v1.2.3