docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ContentType

    Utility class for converting a path to content-type.

    Inheritance
    object
    ContentType
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    public static class ContentType

    Fields

    kDefaultContentType

    Default content-type for uploads.

    Declaration
    public const string kDefaultContentType = "application/octet-stream"
    Field Value
    Type Description
    string

    Methods

    ForPath(string)

    Returns the content type mapping for the provided input file name.

    Declaration
    public static string ForPath(string path)
    Parameters
    Type Name Description
    string path

    Path to the file.

    Returns
    Type Description
    string

    string of content type. Defaults to application/octet-stream.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)