MCPcopy Create free account
hub / github.com/ShipSecAI/studio / uploadFile

Method uploadFile

backend/src/storage/files.controller.ts:59–65  ·  view source on GitHub ↗
(@CurrentAuth() auth: AuthContext | null, @NestUploadedFile() file: any)

Source from the content-addressed store, hash-verified

57 })
58 @UseInterceptors(FileInterceptor('file'))
59 async uploadFile(@CurrentAuth() auth: AuthContext | null, @NestUploadedFile() file: any) {
60 if (!file) {
61 throw new BadRequestException('No file provided');
62 }
63
64 return this.filesService.uploadFile(auth, file.originalname, file.buffer, file.mimetype);
65 }
66
67 @Get()
68 @ApiOkResponse({

Callers

nothing calls this directly

Calls 1

uploadFileMethod · 0.65

Tested by

no test coverage detected