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