Skip to content

Commit befb360

Browse files
authored
Update FilesPage.jsx
1 parent 139b228 commit befb360

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/files-and-videos/files-page/FilesPage.jsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,8 @@ const FilesPage = ({
9191
usageErrorMessages: errorMessages.usageMetrics,
9292
fileType: 'file',
9393
};
94-
95-
// MaxFileSize used in Files upload page
96-
// checks if OVERRIDE_UPLOAD_FILE_MAX_SIZE_IN_MB env variable exists and is a valid number, else uses default from constants
97-
const overrideMaxFileSize = parseInt(process.env.OVERRIDE_UPLOAD_FILE_MAX_SIZE_IN_MB, 10);
98-
const maxFileSize = !isNaN(overrideMaxFileSize) && overrideMaxFileSize > 0
99-
? overrideMaxFileSize * 1024 * 1024
100-
: UPLOAD_FILE_MAX_SIZE;
94+
95+
const maxFileSize = UPLOAD_FILE_MAX_SIZE;
10196

10297
const activeColumn = {
10398
id: 'activeStatus',

0 commit comments

Comments
 (0)