Browse Source

fix: attachment controller changes corrections

pull/6894/head
Pranav C 1 year ago
parent
commit
caa2441140
  1. 4
      packages/nocodb/src/controllers/attachments.controller.ts

4
packages/nocodb/src/controllers/attachments.controller.ts

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

Loading…
Cancel
Save