Browse Source

feat(nocodb): add ncAttachmentFieldSize & ncMaxAttachmentsAllowed

pull/4931/head
Wing-Kam Wong 2 years ago
parent
commit
20aa5eb762
  1. 3
      packages/nocodb/src/lib/meta/api/utilApis.ts

3
packages/nocodb/src/lib/meta/api/utilApis.ts

@ -17,6 +17,7 @@ import User from '../../models/User';
import catchError from '../helpers/catchError'; import catchError from '../helpers/catchError';
import axios from 'axios'; import axios from 'axios';
import { feedbackForm } from 'nc-help'; import { feedbackForm } from 'nc-help';
import { NC_ATTACHMENT_FIELD_SIZE } from '../../constants';
const versionCache = { const versionCache = {
releaseVersion: null, releaseVersion: null,
@ -56,6 +57,8 @@ export async function appInfo(req: Request, res: Response) {
teleEnabled: !process.env.NC_DISABLE_TELE, teleEnabled: !process.env.NC_DISABLE_TELE,
ncSiteUrl: (req as any).ncSiteUrl, ncSiteUrl: (req as any).ncSiteUrl,
ee: Noco.isEE(), ee: Noco.isEE(),
ncAttachmentFieldSize: NC_ATTACHMENT_FIELD_SIZE,
ncMaxAttachmentsAllowed: +(process.env.NC_MAX_ATTACHMENTS_ALLOWED || 10)
}; };
res.json(result); res.json(result);

Loading…
Cancel
Save