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 |
Scotty's best guess of what the content type of the file is. |
fromHeader |
The content type of the file as specified in the request headers, multipart headers, or RUPIO start request. |
fromFileName |
The content type of the file derived from the file extension of the original file name used by the client. |
fromUrlPath |
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 |
The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file. |