Proposed Enhancement: Add Cloudinary Integration and Multer Refactoring for Image Uploads
Note
Note: The current local storage solution is static and may not be suitable for handling images uploaded from external sources. The proposed enhancement aims to provide a more versatile and scalable solution for future project requirements.
Description:
Currently, the project uses a local storage solution for images, which is not dynamically scalable for future enhancements. To address this limitation and ensure better performance and flexibility, we propose integrating Cloudinary, a cloud-based media management platform, into the project. Cloudinary will replace the current local storage, providing a more robust and scalable solution for image uploads.
Key Objectives:
Cloudinary Integration: Incorporate Cloudinary API for seamless handling and storage of images.
Multer Refactoring: Enhance the image upload process in the shopping cart by refactoring Multer configurations to work seamlessly with Cloudinary.
Dynamic Scalability: Ensure that the new solution is dynamically scalable and can handle future growth in image uploads without compromising performance.
Why Cloudinary?
Scalability: Cloudinary provides a scalable cloud-based solution that can handle a growing number of images efficiently.
To enhance user engagement and streamline the on-boarding process, we propose replacing the initial landing page with a showcase of our products. Additionally, we aim to implement login and sign-up routes to allow users to access personalized features and create their accounts seamlessly. This change will provide a more intuitive experience for visitors, eliminating the need to log in immediately upon accessing the website.
Al subir una imagen de perfil, el sistema deberá asegurarse de guardarla en la carpeta "profiles". Si se recibe una imagen correspondiente a un producto, esta deberá ser almacenada en la carpeta "products". Además, al cargar un documento, se espera que Multer lo guarde en una carpeta específica designada como "documents". Se recomienda también explorar la opción de separar estos archivos en Cloudinary para una gestión más eficiente.