I’m trying to change local storage to s3.
I changed all configure, which involve storage, to S3BotoStorage in {lms, cms}.auth.json and {lms, cms}.env.json files, and it worked well for ORA component, but It doesn’t work on “cms website > Content > File & Upload”
I have 2 problems, I hope you can help me that
Where do the file store when I upload files on “File & Upload”?
The files uploaded via File and Uploads are stored in MongoDB, and AFAIK there is currently no way to change this. They are imported and exported with the course, so they can be reliably used in course content.
Files uploaded by users on the forum, course exports, csv reports etc are stored on S3 if properly configured.
Yes, you are correct. The S3 mounted bucket in EC2 as a directory is ok with static files, but not workable with MongoDB. If the intent is to separate or scalable the file system, then EFS is maybe a better choice over EBS.
I don’t think it solves the problem for static files either. The aim with storing on S3 is usually to also deliver the files from S3 so that static files are delivered faster. By mounting an S3 bucket, you are storing the static files on S3, but they are not delivered via S3, so serving static files will get slower.
It could be useful if you have incredibly low space on your server for some reason.