From 20aa5eb7626f0e70b77252d163223eaa028441d1 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 17 Jan 2023 13:57:20 +0800 Subject: [PATCH] feat(nocodb): add ncAttachmentFieldSize & ncMaxAttachmentsAllowed --- packages/nocodb/src/lib/meta/api/utilApis.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nocodb/src/lib/meta/api/utilApis.ts b/packages/nocodb/src/lib/meta/api/utilApis.ts index 6b7acef4eb..30d24ebcf2 100644 --- a/packages/nocodb/src/lib/meta/api/utilApis.ts +++ b/packages/nocodb/src/lib/meta/api/utilApis.ts @@ -17,6 +17,7 @@ import User from '../../models/User'; import catchError from '../helpers/catchError'; import axios from 'axios'; import { feedbackForm } from 'nc-help'; +import { NC_ATTACHMENT_FIELD_SIZE } from '../../constants'; const versionCache = { releaseVersion: null, @@ -56,6 +57,8 @@ export async function appInfo(req: Request, res: Response) { teleEnabled: !process.env.NC_DISABLE_TELE, ncSiteUrl: (req as any).ncSiteUrl, ee: Noco.isEE(), + ncAttachmentFieldSize: NC_ATTACHMENT_FIELD_SIZE, + ncMaxAttachmentsAllowed: +(process.env.NC_MAX_ATTACHMENTS_ALLOWED || 10) }; res.json(result);