MCPcopy Create free account
hub / github.com/chunshand/qdev / uploadFile

Method uploadFile

serve/src/app/admin/common/common.controller.ts:27–29  ·  view source on GitHub ↗
(@UploadedFile() file: Express.Multer.File, @Req() req)

Source from the content-addressed store, hash-verified

25 @Post('upload')
26 @UseInterceptors(FileInterceptor('file'))
27 async uploadFile(@UploadedFile() file: Express.Multer.File, @Req() req) {
28 return this.fileService.handleLocalFile(file, +req.user.userId);
29 }
30
31}

Callers

nothing calls this directly

Calls 1

handleLocalFileMethod · 0.80

Tested by

no test coverage detected