MCPcopy
hub / github.com/codeaashu/claude-code / guessMimeType

Function guessMimeType

src/tools/BriefTool/upload.ts:51–54  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

49}
50
51function guessMimeType(filename: string): string {
52 const ext = extname(filename).toLowerCase()
53 return MIME_BY_EXT[ext] ?? 'application/octet-stream'
54}
55
56function debug(msg: string): void {
57 logForDebugging(`[brief:upload] ${msg}`)

Callers 1

uploadBriefAttachmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected