|
|
@@ -32,10 +32,7 @@ export class UploaderController {
|
|
|
|
|
|
@Post('upload')
|
|
|
@ApiConsumes('multipart/form-data')
|
|
|
- async upload(
|
|
|
- @Req() req: FastifyRequest,
|
|
|
- @Body() body: UploadRequestDto,
|
|
|
- ): Promise<{ keyPath: string; imageStorage: ImageStorage }> {
|
|
|
+ async upload(@Req() req: FastifyRequest, @Body() body: UploadRequestDto) {
|
|
|
const mpFile: MultipartFile | undefined = await (req as any).file();
|
|
|
if (!mpFile) {
|
|
|
throw new BadRequestException('File is required');
|