anasakil / artisan

MIT License
1 stars 1 forks source link

Implement Multer for Product Image Uploads #23

Open anasakil opened 3 months ago

anasakil commented 3 months ago

Install and configure Multer in our Express.js backend. Create a storage configuration in Multer to define the destination and filename for uploaded images. Update the product model to include a field for storing the image file path. Modify the product creation and update API endpoints to use Multer for handling image uploads. Ensure that only image files (e.g., jpg, png) are accepted and that file size limits are enforced. Test the image upload functionality to ensure that it works correctly and securely.