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

Function extractExtension

apps/sim/lib/uploads/utils/validation.ts:10–13  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

8}
9
10function extractExtension(fileName: string): string {
11 const lastDot = fileName.lastIndexOf('.')
12 return lastDot !== -1 ? fileName.slice(lastDot + 1).toLowerCase() : ''
13}
14
15export const MAX_FILE_SIZE = 100 * 1024 * 1024 // 100MB
16

Callers 3

validateFileTypeFunction · 0.85
validateMediaFileTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected