Open Response Assessment (ORA) Using Filesystem as Storage in Open edX
By default, ORA uses Amazon S3 as a storage for files uploaded via this component. Apart from using Amazon S3, ORA has alternative storage, one of which is the filesystem.
Following are the steps you need to take if you want the uploaded files to be stored on the Open edX server.
- Open dan edit file
/edx/app/edxapp/edx-platform/lms/envs/common.py, then add the following syntax.
### ORA2 filesystem settings ORA2_FILEUPLOAD_BACKEND = "filesystem" ORA2_FILEUPLOAD_CACHE_NAME= "default" ORA2_FILEUPLOAD_ROOT = os.path.join(MEDIA_ROOT, 'ora-upload/')
Open dan edit file
/edx/app/edxapp/lms.env.json, then find
FILE_UPLOAD_STORAGE_BUCKET_NAME, the value still needs to be set even when using the filesystem method. For example, the value is set to
Create a storage media directory and set the directory permissions that are created.
$ sudo mkdir -p /edx/var/edxapp/media/ora-upload/ora2/submissions_attachments $ sudo chmod -R 775 /edx/var/edxapp/media/ora-upload/ora2 $ sudo chown www-data:www-data /edx/var/edxapp/media/ora-upload/ -R
- Until this stage the setup process has been completed, please restart the LMS service then test the upload file and download the uploaded file.