# ContentTypeInfo

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/ContentTypeInfo#SCHEMA_REPRESENTATION)

Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's bestGuess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.

| JSON representation |
|---|
| ``` { "bestGuess": string, "fromHeader": string, "fromFileName": string, "fromUrlPath": string, "fromBytes": string } ``` |

| Fields ||
|---|---|
| `bestGuess` | `string` Scotty's best guess of what the content type of the file is. |
| `fromHeader` | `string` The content type of the file as specified in the request headers, multipart headers, or RUPIO start request. |
| `fromFileName` | `string` The content type of the file derived from the file extension of the original file name used by the client. |
| `fromUrlPath` | `string` The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API). |
| `fromBytes` | `string` The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file. |