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

Function getContentType

apps/sim/app/api/files/utils.ts:83–86  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

81]
82
83export function getContentType(filename: string): string {
84 const extension = filename.split('.').pop()?.toLowerCase() || ''
85 return contentTypeMap[extension] || 'application/octet-stream'
86}
87
88export function extractFilename(path: string): string {
89 let filename: string

Callers 3

compileDocumentIfNeededFunction · 0.90
handleCloudProxyPublicFunction · 0.90
handleLocalFilePublicFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected