From 73609951b99a1582c6dcf6398fb693c71fcefb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrey=20Ca=C3=B1on?= <36200299+andrey-canon@users.noreply.github.com> Date: Wed, 29 Apr 2026 17:32:36 -0500 Subject: [PATCH] feat: make max file size configurable via asset upload settings --- src/files-and-videos/files-page/CourseFilesTable.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/files-and-videos/files-page/CourseFilesTable.tsx b/src/files-and-videos/files-page/CourseFilesTable.tsx index a08602ee9e..d3299774b0 100644 --- a/src/files-and-videos/files-page/CourseFilesTable.tsx +++ b/src/files-and-videos/files-page/CourseFilesTable.tsx @@ -1,3 +1,4 @@ +import { getConfig } from '@edx/frontend-platform'; import { useIntl } from '@edx/frontend-platform/i18n'; import { CheckboxFilter } from '@openedx/paragon'; import { AgreementGated, UPLOAD_FILE_MAX_SIZE } from '@src/constants'; @@ -88,7 +89,7 @@ export const CourseFilesTable = () => { usageErrorMessages: errorMessages.usageMetrics, fileType: 'file', }; - const maxFileSize = UPLOAD_FILE_MAX_SIZE; + const maxFileSize = getConfig().MAX_ASSET_UPLOAD_FILE_SIZE_IN_MB * 1024 * 1024 || UPLOAD_FILE_MAX_SIZE; const activeColumn = { id: 'activeStatus',