We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40c48a commit 0a51e8fCopy full SHA for 0a51e8f
README.md
@@ -58,6 +58,15 @@ catch (Exception e) // the file size is probably over the OpenReadStream limit
58
}
59
```
60
61
+## 💡 Custom MIME types
62
+
63
+If you need to register custom MIME/file extension pairs, use `MimeTypeMap.AddMimeTypes`:
64
+```cs
65
+MimeTypeMap.AddMimeTypes([
66
+ new KeyValuePair<string, string>(".js", "text/javascript")
67
+]);
68
+```
69
70
## 🎯 Examples
71
72
- [Blazor Server](https://github.com/lofcz/MimeTypeCore/blob/master/MimeTypeCore/MimeTypeCore.Example.Web/Components/Pages/Home.razor)
0 commit comments