File-upload

Component design:

How to use a component:

STM_LMS_Templates::show_lms_template(
    'components/file-upload',
    array(
        'attachments'            => array(), (required)
        'allowed_extensions'     => array(), (required)
        'files_limit'            => int, (required)
        'allowed_filesize'       => int, (required)
        'allowed_filesize_label' => string, (required)
        'readonly'               => bool, (required)
        'dark_mode'              => bool, (required)
    )
);

Last updated