Skip to main content
MimeMapping package icon

MimeMapping

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 file. Works similar to .NET's System.Web.MimeMapping.GetMimeMapping. It aggregates data from the following sources: https://www.iana.org/assignments/media-types/media-types.xhtml https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types https://hg.nginx.org/nginx/raw-file/default/conf/mime.types See: https://github.com/jshttp/mime-db#mime-db https://learn.microsoft.com/dotnet/api/system.web.mimemapping.getmimemapping

Total Downloads
25.1M
25,132,303
Published
Nov 16, 2022
Latest stable version

Install

.NET CLI
dotnet add package MimeMapping --version 1.0.1.50
Package Manager Console
Install-Package MimeMapping -Version 1.0.1.50
PackageReference
<PackageReference Include="MimeMapping" Version="1.0.1.50" />

Frameworks

.NETStandard1.1 .NETStandard2.0 .NETStandard2.1

Dependencies

NETStandard.Library
.NETStandard1.1
[1.6.1, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.