Skip to content

Commit 57d441e

Browse files
authored
Update constants.js
1 parent a127ba6 commit 57d441e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ export const DECODED_ROUTES = {
5555

5656
// FilesUpload page - Default max size: 20MB else use env override if exists and valid number
5757
const DEFAULT_UPLOAD_FILE_MAX_SIZE = 20 * 1024 * 1024; // 20 MB
58+
5859
export const getUploadFileMaxSize = () => {
5960
const config = getConfig();
6061
const overrideMaxFileSizeMB = parseInt(config.OVERRIDE_UPLOAD_FILE_MAX_SIZE_IN_MB, 10);
6162
return !isNaN(overrideMaxFileSizeMB) && overrideMaxFileSizeMB > 0
6263
? overrideMaxFileSizeMB * 1024 * 1024
6364
: DEFAULT_UPLOAD_FILE_MAX_SIZE;
6465
};
65-
export const UPLOAD_FILE_MAX_SIZE = getUploadFileMaxSize();
6666

6767
export const COURSE_BLOCK_NAMES = ({
6868
chapter: { id: 'chapter', name: 'Section' },

0 commit comments

Comments
 (0)