Table of Contents

Class MimeUtilities

Namespace
Oqtane.Extensions
Assembly
Oqtane.Server.dll
public static class MimeUtilities
Inheritance
MimeUtilities

Methods

GetMimeType(File)

Return Mime content type based on file extension

public static string GetMimeType(this File file)

Parameters

file File

Returns

string

GetMimeType(string)

Return Mime content type based on file extension

public static string GetMimeType(string fileName)

Parameters

fileName string

File name

Returns

string