If I want each user in my web app to be able to upload about 6 pictures with a description, what is the best way to store that info in the db?
How would you do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
i would save the image files to a location in the file system.
then, keep a database table for images that contains id, filepath, description.
you may also want to keep other info in the image table as well, for instance, which user the image belongs to, and which is the main image, width, height, etc.