Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

MimeTypes.cs

namespace Nop.Core;

/// 
/// Collection of MimeType Constants for using to avoid Typos
/// If needed MimeTypes missing feel free to add
/// 
public static class MimeTypes
{
    #region application/*

    /// 
    /// Type
    /// 
    public static string ApplicationForceDownload => "application/force-download";

    /// 
    /// Type
    /// 
    public static string ApplicationJson => "application/json";

    /// 
    /// Type
    /// 
    public static string ApplicationManifestJson => "application/manifest+json";

    /// 
    /// Type
    /// 
    public static string ApplicationOctetStream => "application/octet-stream";

    /// 
    /// Type
    /// 
    public static string ApplicationPdf => "application/pdf";

    /// 
    /// Type
    /// 
    public static string ApplicationRssXml => "application/rss+xml";

    /// 
    /// Type
    /// 
    public static string ApplicationXml => "application/xml";

    /// 
    /// Type
    /// 
    public static string ApplicationXWwwFormUrlencoded => "application/x-www-form-urlencoded";

    /// 
    /// Type
    /// 
    public static string ApplicationZip => "application/zip";

    /// 
    /// Type
    /// 
    public static string ApplicationXZipCo => "application/x-zip-co";

    #endregion

    #region image/*

    /// 
    /// Type
    /// 
    public static string ImageBmp => "image/bmp";

    /// 
    /// Type
    /// 
    public static string ImageGif => "image/gif";

    /// 
    /// Type
    /// 
    public static string ImageJpeg => "image/jpeg";

    /// 
    /// Type
    /// 
    public static string ImagePJpeg => "image/pjpeg";

    /// 
    /// Type
    /// 
    public static string ImagePng => "image/png";

    /// 
    /// Type
    /// 
    public static string ImageTiff => "image/tiff";

    /// 
    /// Type
    /// 
    public static string ImageWebp => "image/webp";

    /// 
    /// Type
    /// 
    public static string ImageSvg => "image/svg+xml";

    #endregion

    #region text/*

    /// 
    /// Type
    /// 
    public static string TextCss => "text/css";

    /// 
    /// Type
    /// 
    public static string TextCsv => "text/csv";

    /// 
    /// Type
    /// 
    public static string TextJavascript => "text/javascript";

    /// 
    /// Type
    /// 
    public static string TextPlain => "text/plain";

    /// 
    /// Type
    /// 
    public static string TextXlsx => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";

    #endregion
}