MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / getMimeTypeFromFilename

Function getMimeTypeFromFilename

packages/components/nodes/agentflow/utils.ts:466–469  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

464
465/** Returns the MIME type for a filename based on its extension. */
466export const getMimeTypeFromFilename = (filename: string): string => {
467 const extension = filename.toLowerCase().split('.').pop()
468 return MIME_TYPES[extension || ''] || 'application/octet-stream'
469}
470
471/** Returns the artifact type (for UI rendering) based on a filename's extension. */
472export const getArtifactTypeFromFilename = (filename: string): string => {

Callers 1

downloadContainerFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected