-
Notifications
You must be signed in to change notification settings - Fork 0
Cloudinary image storage
Morris Raycroft edited this page Sep 30, 2021
·
4 revisions
- Cloudinary is the best choice right now as its free plan offers the most storage and paid plans still offer more than Amazon or Azure.
- Their UI is also very simple and updated.
- Allows for videos and PDF's saving.
- Includes file size limits which we can change.
- Where we used to call the Cloudinary API directly for uploads, we have since added API endpoints to our own server to handle uploading and filtering using the NodeJS Cloudinary library:
-
api/image/upload, which takes an uploaded file and the folder (such as /images or /pdfs) it will be stored in as parameters. There is an optional "uploader" parameter that will append the given ID to the image as metadata. -
api/image/getImagesFrom/[uploader], which queries Cloudinary for images that matches the specified uploader ID. This is currently used to display recently uploaded images from a specific user.
-
- Each upload gets a unique ID in which we save to our database.
- When we need to get the image we use the saved ID and Cloudinary retrieves it all done on the frontend.
Login information here https://docs.google.com/document/d/1c3ggvJkleC0BTtfNkCCNfnGw37NWVQ8srAi6C3iGU6Q/edit