Function: getFileFormatInfoFromFileName()
getFileFormatInfoFromFileName(
fileName,fileFormats):FileFormatInfo|undefined
Match a file name against the formats' extensions, longest extension first, so x.mtlx.zip is mtlx, not zip.
Parameters
fileName
string
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