diff --git a/packages/nocodb-nest/src/filters/global-exception/global-exception.filter.ts b/packages/nocodb-nest/src/filters/global-exception/global-exception.filter.ts index 772c9d04ca..52aab7da51 100644 --- a/packages/nocodb-nest/src/filters/global-exception/global-exception.filter.ts +++ b/packages/nocodb-nest/src/filters/global-exception/global-exception.filter.ts @@ -51,6 +51,7 @@ export class GlobalExceptionFilter implements ExceptionFilter { if (exception.getStatus?.()) { response.status(exception.getStatus()).json(exception.getResponse()); } else { + // todo: change the response code response.status(400).json({ msg: exception.message, }); diff --git a/packages/nocodb-nest/src/modules/attachments/attachments.controller.ts b/packages/nocodb-nest/src/modules/attachments/attachments.controller.ts index c1fa20b757..40ae2979aa 100644 --- a/packages/nocodb-nest/src/modules/attachments/attachments.controller.ts +++ b/packages/nocodb-nest/src/modules/attachments/attachments.controller.ts @@ -47,7 +47,7 @@ export class AttachmentsController { @HttpCode(200) @UseInterceptors( UploadAllowedInterceptor, - FilesInterceptor('files[]', null, { + FilesInterceptor('files', null, { storage: multer.diskStorage({}), // limits: { // fieldSize: NC_ATTACHMENT_FIELD_SIZE,