docs.unity3d.com
    Show / Hide Table of Contents

    Class ContentType

    Utility class for converting a path to content-type.

    Inheritance
    Object
    ContentType
    Namespace: Unity.Simulation
    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023