MCPcopy
hub / github.com/simstudioai/sim / getContentType

Function getContentType

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

Source from the content-addressed store, hash-verified

92 * Get the content type for a given MIME type
93 */
94export function getContentType(mimeType: string): 'image' | 'document' | 'audio' | 'video' | null {
95 return MIME_TYPE_MAPPING[mimeType.toLowerCase()] || null
96}
97
98/**
99 * Check if a MIME type is supported

Callers 6

getAttachmentContentTypeFunction · 0.90
resolveServableDocBytesFunction · 0.90
isAudioFileTypeFunction · 0.70
isVideoFileTypeFunction · 0.70
isMediaFileTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected