jeudi 3 septembre 2015

store multiple images for one product

I am working on a basic e-commerce website using PHP/MYSQL on AWS. I just need to know how good approach to store multiple images with multiple size for a product.

The question is what is the best way to interconnect images in filesystem with product in DB:

I am thinking about:

keep the reference to unique folder dynamically created on amazon s3 for this product.

create new table in db (something like product_and_images) where we will keep information about product and images.

Thanks




Aucun commentaire:

Enregistrer un commentaire