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

Function getAttachmentContentType

apps/sim/providers/attachments.ts:206–210  ·  view source on GitHub ↗
(
  mimeType: string
)

Source from the content-addressed store, hash-verified

204}
205
206function getAttachmentContentType(
207 mimeType: string
208): PreparedProviderAttachment['contentType'] | null {
209 return getContentType(mimeType) || (isTextDocumentMimeType(mimeType) ? 'document' : null)
210}
211
212function sniffImageMimeType(base64: string): string {
213 let bytes: Buffer

Callers 1

Calls 2

getContentTypeFunction · 0.90
isTextDocumentMimeTypeFunction · 0.85

Tested by

no test coverage detected