![]() |
VOOZH | about |
dotnet add package MimeMapping --version 4.0.0
NuGet\Install-Package MimeMapping -Version 4.0.0
<PackageReference Include="MimeMapping" Version="4.0.0" />
<PackageVersion Include="MimeMapping" Version="4.0.0" />Directory.Packages.props
<PackageReference Include="MimeMapping" />Project file
paket add MimeMapping --version 4.0.0
#r "nuget: MimeMapping, 4.0.0"
#:package MimeMapping@4.0.0
#addin nuget:?package=MimeMapping&version=4.0.0Install as a Cake Addin
#tool nuget:?package=MimeMapping&version=4.0.0Install as a Cake Tool
👁 Nuget
👁 Nuget
👁 build
👁 codecov
Constants for (almost) all MIME types and method to determine MIME type from a file name. Contains just over 1000 mime types.
The Dictionary is generated from the jshttp/mime-db db.json.
Works similar to .NET's System.Web.MimeMapping.GetMimeMapping.
It aggregates data from the following sources:
The library is just a literal C# Dictionary<string, string> with over 1000 entries, and a helper method that can be passed a file path.
string myFile = "myimage.jpg";
string mimeType = MimeMapping.MimeUtility.GetMimeMapping(myFile);
Console.WriteLine(mimeType); // output: image/jpeg
string randomFile = "data.asdf";
string mimeType = MimeMapping.MimeUtility.GetMimeMapping(randomFile);
Console.WriteLine(mimeType); // output: application/octet-stream
string rawExtension = "json";
string mimeType = MimeMapping.MimeUtility.GetMimeMapping(rawExtension);
Console.WriteLine(mimeType); // output: application/json
// List all types..
foreach(var kp in MimeMapping.MimeTypes.TypeMap)
{
Console.WriteLine($"File extension: {kp.Key}, mime string: {kp.Value}");
}
//Just use a constant if you already know the file type (performance)
const string mimeType = MimeMapping.KnownMimeTypes.Xlsx
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on MimeMapping:
| Package | Downloads |
|---|---|
|
Gotenberg.Sharp.API.Client
C# API client for interacting with the Gotenberg v7 & v8 micro-service's API, a docker-powered stateless API for converting & merging HTML, Markdown and Office documents to PDF, taking screenshots, and performing standalone PDF operations (flatten, rotate, split, encrypt). The client supports a configurable Polly retry policy with exponential back-off for handling transient exceptions. |
|
|
SparkPost
SparkPost API |
|
|
Sitko.Core.Storage
Sitko.Core is a set of libraries to help build .NET Core applications fast |
|
|
Supabase.Storage
A C# implementation of the Supabase Storage client |
|
|
Mosaik.Library
Package Description |
Showing the top 18 popular GitHub repositories that depend on MimeMapping:
| Repository | Stars |
|---|---|
|
Jackett/Jackett
API Support for your favorite torrent trackers
|
|
|
WebVella/WebVella-ERP
Free and open-source pluggable ERP and CRM software based on ASP.NET Core 9, RazorPages and PostgreSQL . Targets Linux or Windows as host OS.
|
|
|
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
|
|
| BedrockLauncher/BedrockLauncher | |
|
HenJigg/wpf-abp
Cross-platform mobile project and WPF client based on ABP framework Xamarin.Forms
|
|
|
jenius-apps/nightingale-rest-api-client
A modern, resource-efficient REST API client for Windows
|
|
|
ShokoAnime/ShokoServer
Repository for Shoko Server.
|
|
|
robinrodricks/FluentStorage
A polycloud .NET cloud storage abstraction layer. Provides Blob storage (AWS S3, GCP, FTP, SFTP, Azure Blob/File/Event Hub/Data Lake) and Messaging (AWS SQS, Azure Queue/ServiceBus). Supports .NET 5+ and .NET Standard 2.0+. Pure C#.
|
|
|
MediaPortal/MediaPortal-2
Development of MediaPortal 2
|
|
|
Kooboo/Kooboo
CMS, WebSite, Application and Ecommerce Development Tool Using JavaScript
|
|
|
BMW-InnovationLab/BMW-Labeltool-Lite
This repository provides you with an easy-to-use labeling tool for State-of-the-art Deep Learning training purposes. It supports Auto-Labeling.
|
|
|
SnowflakePowered/snowflake
:snowflake: :video_game: Emulator Frontend and SDK
|
|
|
ChangemakerStudios/GotenbergSharpApiClient
.NET C# Client for the Gotenberg API
|
|
|
siemens/simatic-s7-webserver-api
A .NET API Client Library for the SIMATIC S7 PLC Webserver API
|
|
|
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
|
|
|
marcominerva/SqlDatabaseVectorSearch
A Blazor Web App and Minimal API for performing RAG (Retrieval Augmented Generation) and vector search using the native VECTOR type in Azure SQL Database and Azure OpenAI.
|
|
|
fEndman/WarFactory
幻影坦克+无影坦克全面手机APP解决方案(手动滑稽)
|
|
|
microsoft/VirtualClient
Benchmarking and monitoring automation, designed for cloud, built with .NET.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 323,499 | 1/30/2026 |
| 3.2.0 | 56,236 | 1/20/2026 |
| 3.1.0 | 2,427,861 | 12/9/2024 |
| 3.0.1 | 4,079,701 | 2/15/2024 |
| 3.0.0 | 3,900 | 2/15/2024 |
| 2.1.0 | 175,135 | 2/14/2024 |
| 2.0.0 | 2,695,789 | 3/30/2023 |
| 1.0.1.50 | 1,717,083 | 11/16/2022 |
| 1.0.1.37 | 7,427,836 | 1/22/2021 |
| 1.0.1.35 | 66,745 | 1/14/2021 |
| 1.0.1.30 | 1,429,329 | 6/18/2020 |
| 1.0.1.26 | 839,494 | 12/5/2019 |
| 1.0.1.21 | 8,178 | 12/3/2019 |
| 1.0.1.17 | 401,178 | 9/23/2019 |
| 1.0.1.15 | 115,617 | 8/25/2019 |
| 1.0.1.14 | 68,731 | 8/9/2019 |
| 1.0.1.12 | 1,970,780 | 11/15/2017 |
| 1.0.1.10 | 100,669 | 8/18/2017 |
| 0.1.6 | 75,967 | 8/3/2017 |
| 0.1.5.9 | 3,103 | 8/7/2017 |