Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

fix: register image/svg+xml MIME type for .svg files (#13186)

Jin Yi225c52f6a4fb
diff --git a/utils/mime_types.py b/utils/mime_types.py
index 916e963c5..a173ad109 100644
--- a/utils/mime_types.py
+++ b/utils/mime_types.py
@@ -24,6 +24,7 @@ def init_mime_types():
# Web types (used by server.py for static file serving)
mimetypes.add_type('application/javascript; charset=utf-8', '.js')
mimetypes.add_type('image/webp', '.webp')
+ mimetypes.add_type('image/svg+xml', '.svg')
# Model and data file types (used by asset scanning / metadata extraction)
mimetypes.add_type("application/safetensors", ".safetensors")