MCPcopy Create free account
hub / github.com/agegr/pi-web / parseUploadFileNames

Function parseUploadFileNames

app/api/files/[...path]/route.ts:113–116  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

111}
112
113function parseUploadFileNames(value: unknown): string[] | null {
114 if (!Array.isArray(value) || !value.every((item) => typeof item === "string")) return null;
115 return value;
116}
117
118export async function POST(
119 request: NextRequest,

Callers 1

POSTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected