ContentTypeInfo
import type { ContentTypeInfo } from "https://googleapis.deno.dev/v1/walletobjects:v1.ts";
Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, 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.
interface ContentTypeInfo {
bestGuess?: string;
fromBytes?: string;
fromFileName?: string;
fromHeader?: string;
fromUrlPath?: string;
}§Properties
§
fromBytes?: string
[src]The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file.
§
fromFileName?: string
[src]The content type of the file derived from the file extension of the original file name used by the client.