Where exactly do I store images on a webserver if not in my MySQL database? I’ve been told that storing images as a BLOB in a DB is bad practice.
Also, how do I store references to these images in a DB? If I have a food_items table, can the table look like this?
Food Items
Id | Name | Description | Price | ImageURL
1 | chicken | tasty | 100 | http://www.myurl.com/folderwithimages/image.jpg ??
Thanks
If this is a web server, I would highly recommend you put the image into S3. Here’s some documentation regarding Amazon S3.