Class ContentType
Utility class for converting a path to content-type.
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. |