Upload scorm packages on aws s3

Hello all,

i am trying to upload scorm packages to aws s3 which are currently being stored in default media path. I have reviewed and applied all the answers and solutions on this platform but they didnt work.I have also tried the solution given in below link but it was giving me an error ‘name ‘XBLOCK_SETTINGS’ is not defined’:

GitHub - overhangio/openedx-scorm-xblock: SCORM XBlock for Open edX


def scorm_storage(xblock):
    from django.conf import settings
    from django.core.files.storage import get_storage_class
    from openedx.core.djangoapps.site_configuration.models import SiteConfiguration

    subfolder = SiteConfiguration.get_value_for_org(
        xblock.location.org, "SCORM_STORAGE_NAME", "default"
    )
    storage_location = os.path.join(settings.MEDIA_ROOT, subfolder)
    return get_storage_class(settings.DEFAULT_FILE_STORAGE)(
        location=storage_location, base_url=settings.MEDIA_URL + "/" + subfolder
    )

XBLOCK_SETTINGS["ScormXBlock"] = {
    "STORAGE_FUNC": scorm_storage,
}

currently i am doing all the related changes and configuration of s3 in scormxblock.py file. can anyone tell me, how can i achieve the same?