Found 28 packages
Simple dictionary provides a few methods to lookup mime type/extension, generated From Apache's mime.types.
Huge dictionary of file extensions to mime types
The ultimate file-extension & mime-type library with over 14,000+ signatures. Quickly detect extensions & mime types from a stream or byte array using magic numbers (file headers) and magic words. A default signature library is included and can be expanded using Mime-Detective.Definitions.Condensed (common signatures) or Mime-Detective.Definitions.Exhaustive (14,000+ signatures).
Provides a huge two-way mapping of file extensions to mime types and mime types to file extensions.
An exhaustive library of over 14,000 file signatures for use by the "Mime-Detective" package.
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
A condensed library of +100 common file signatures for use by the "Mime-Detective" package.
MIME content type definitions mapped with file extensions and file signatures.
Adds .svg and .svgz `mimeMap` entries to web.config, so that IIS can serve them correctly.
Adds .eot, .otf, .ttf, .woff and .woff2 as `mimeMap` entries to web.config, so that IIS can serve them correctly.
Huge dictionary of file extensions to mime types. Fork created to support .NET Framework 4.5.
The MimeTypeMap class in C# provides a thread-safe way to map file extensions to MIME types and vice versa. It leverages concurrent dictionaries to ensure that operations can safely occur in multi-threaded environments. The class includes a set of methods that allow users to retrieve MIME types based on file extensions and retrieve file extensions based on MIME types. It also handles exceptions and provides default MIME types when specific mappings are not found. This class is particularly useful in environments where file types need to be dynamically recognized and processed, such as in web servers and content management systems.
Successor to MimeTypeMap with magic bytes based collision resolution and extra mappings.
Easy mapping between file extensions and mime types