Blob
Storing static files in MongoDB or any database you’re using is a terrible idea, Ideally, you want to separate your static files from your database and save these files in a bucket like AWS S3.
AWS S3 — Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance.
Create your S3 account refer to this article by AWS for help
Before proceed to work on file upload you will need some local variables.
In order to get your Access Key ID and Secret Access Key follow the next steps:
Open the IAM console.
From the navigation menu, click Users.
Select your IAM user name.
Click User Actions, and then click Manage Access Keys.
Click Create Access Key.
Your keys will look something like this:
Access key ID example: BOOSTACK7EXAMPLE
Secret access key example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Click Download Credentials, and store the keys in a secure location.
Write down your Access and Secret access Keys.
Last updated
Was this helpful?