Skip to content

Get UPLOAD_FILE_MAX_SIZE setting from the backend #2958

@kdmccormick

Description

@kdmccormick

This was reported here: https://discuss.openedx.org/t/upload-size-limit-not-working-platform-wide/18610/4

It's currently hard-coded to 20MB:

export const UPLOAD_FILE_MAX_SIZE = 20 * 1024 * 1024; // 100mb

There's a setting on the CMS backend which can be adjusted, called MAX_ASSET_UPLOAD_FILE_SIZE_IN_MB: https://github.com/openedx/openedx-platform/blob/919a479dac43701fb1bbd27a9e3a9bcd2d85b11c/cms/envs/common.py#L935

In openedx-platform, this setting should be piped into one of the existing REST APIs which frontend-app-authoring calls. Then, in frontend-app-authoring, that setting's value should be used as the max instead. The UPLOAD_FILE_MAX_SIZE frontend constant should be deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good task for a newcomer to start withhelp wantedReady to be picked up by anyone in the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions