MCPcopy
hub / github.com/simstudioai/sim / route.ts

File route.ts

apps/sim/app/api/files/upload/route.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createLogger } from '@sim/logger'
2import { getErrorMessage } from '@sim/utils/errors'
3import { type NextRequest, NextResponse } from 'next/server'
4import { sanitizeFileName } from '@/executor/constants'

Callers

nothing calls this directly

Calls 15

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
readFormDataWithLimitFunction · 0.90
validateFileTypeFunction · 0.90
getUserEntityPermissionsFunction · 0.90
getErrorMessageFunction · 0.90
generateWorkspaceFileKeyFunction · 0.90
isImageFileTypeFunction · 0.90

Tested by

no test coverage detected