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

Function isMediaFileType

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

Source from the content-addressed store, hash-verified

133 * Check if a MIME type is an audio or video type
134 */
135export function isMediaFileType(mimeType: string): boolean {
136 const contentType = getContentType(mimeType)
137 return contentType === 'audio' || contentType === 'video'
138}
139
140/**
141 * Convert a file buffer to base64

Callers

nothing calls this directly

Calls 1

getContentTypeFunction · 0.70

Tested by

no test coverage detected