Function: getFileFormatInfoFromMimeTypeAndFileName()
getFileFormatInfoFromMimeTypeAndFileName(
mimeType,fileName,fileFormats):FileFormatInfo|undefined
Resolve a format from a MIME type, using the file name to break ties when several formats share the MIME
type (e.g. application/zip is fcstd, mtlx and zip).
Parameters
mimeType
string
fileName
string | undefined
fileFormats
readonly ("webp" | "avif" | "3ds" | "blend" | "dae" | "dxf" | "exr" | "fcstd" | "fbx" | "gif" | "glb" | "gltf" | "hdr" | "ies" | "iges" | "jxl" | "jpg" | "mtlx" | "obj" | "pdf" | "ply" | "png" | "step" | "stl" | "svg" | "tif" | "usdz" | "zip")[]
Returns
FileFormatInfo | undefined