Constants for (almost) all MIME types and method to determine MIME type from a file name. Contains just over 1000 mime types.
Generated from the Apache server mime.types file and the H5PB nginx mime.types file. Works similar to .NET's...
More information
A simple lookup from file name/extension to MIME/media type, generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.
MediaTypeFormatter allowing the use of YAML (YAML Ain't Markup Language) as a the MIME-Type or content-type in ASP.NET Web API. Both serialization and deserialization are supported allowing web services to both emit and accept YAML in place of XML or JSON.
The underlying YAML parsing and rendering...
More information
Constants for (almost) all MIME types and method to determine MIME type from a file name. Contains just over 1000 mime types.
Generated from the Apache server mime.types file and the H5PB nginx mime.types file. Works similar to .NET's...
More information
This library helps you decide the allowed files in your system by letting the file go through specific checks (filtering layers) before doing anything to the file. It supports four layers of checking including MimeTypes, and Content-Types.
Usage: YOUR_IFormFile.IsFileAllowed(ARGS);
.NET MimeType Helper with realtime update from apache docs main git trunk
namespace Purple.Sdk.MimeTyper.Tests
{
public class MimeTyperTests
{
[Fact]
public async Task GetExtensionFromMimeType()
{
var downloader = new MimeTyper();
var ext =...
More information