nicanthoni / E-Commerce

MIT License
1 stars 0 forks source link

Multer #81

Open nicanthoni opened 3 weeks ago

nicanthoni commented 3 weeks ago

Implement multer for profile picture uploads and vendor item uploads

nicanthoni commented 6 days ago

Items uploading successfully and adding to vendor / item models as expected. However, with img sources for those uploads being stored in /uploads folder, the images for those specfic items are not rendering in do to current logic for rendering seeded products' images.

nicanthoni commented 6 days ago

Multer uploading files and adding to data base. Imgs rendering due to addition of conditional check on singleproduct and all product pages. Checks how the img property starts, to determine if seeded item of uploaded via multer:

Example:

Image

nicanthoni commented 6 days ago

Fixed - item previously wishlisted when testing was deleted. This was causing issues as it had been wishlisted, and the item no longer existed but remained in wishlist. Manually removed item from db to resolve.