|
|
@ -36,7 +36,7 @@ export class AttachmentsController { |
|
|
|
) { |
|
|
|
) { |
|
|
|
const attachments = await this.attachmentsService.upload({ |
|
|
|
const attachments = await this.attachmentsService.upload({ |
|
|
|
files: files, |
|
|
|
files: files, |
|
|
|
path: req.query?.path as string, |
|
|
|
path: req.query?.path?.toString(), |
|
|
|
req, |
|
|
|
req, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -48,7 +48,7 @@ export class AttachmentsController { |
|
|
|
@UseInterceptors(UploadAllowedInterceptor) |
|
|
|
@UseInterceptors(UploadAllowedInterceptor) |
|
|
|
@UseGuards(MetaApiLimiterGuard, GlobalGuard) |
|
|
|
@UseGuards(MetaApiLimiterGuard, GlobalGuard) |
|
|
|
async uploadViaURL( |
|
|
|
async uploadViaURL( |
|
|
|
@Body() body: any, |
|
|
|
@Body() body: Array<AttachmentReqType>, |
|
|
|
@Query('path') path: string, |
|
|
|
@Query('path') path: string, |
|
|
|
@Request() req: any, |
|
|
|
@Request() req: any, |
|
|
|
) { |
|
|
|
) { |
|
|
|