Remix
Remix
remix/mime · FunctionView Source

defineMimeType

Summary

Registers a custom MIME type for one or more file extensions.

Use this to add support for file extensions not included in the defaults, or to override the behavior of existing extensions.

Signature

function defineMimeType(definition: MimeTypeDefinition): void;

Example

defineMimeType({
  extensions: ["x-myformat"],
  mimeType: "application/x-myformat",
});

Parameters

definition

The MIME type definition to register