MCPcopy Index your code
hub / github.com/simstudioai/sim / getExtensionFromMimeType

Function getExtensionFromMimeType

apps/sim/lib/uploads/utils/file-utils.ts:447–449  ·  view source on GitHub ↗
(mimeType: string)

Source from the content-addressed store, hash-verified

445 * @returns File extension without dot, or null if not found
446 */
447export function getExtensionFromMimeType(mimeType: string): string | null {
448 return MIME_TO_EXTENSION[mimeType.toLowerCase()] || null
449}
450
451/**
452 * Format bytes to human-readable file size

Callers 7

getAttachmentExtensionFunction · 0.90
ensureFileExtensionFunction · 0.90
resolveParserExtensionFunction · 0.90
isFileTypeAcceptedFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected