Serving images from Amazon S3 in PHP application
- by luckytaxi
So it just occurred to me that once I upload profile pics to S3, I have to figure out a way to keep track of the files. For example, if "susan" uploads 3 profile pics, I need to recall those 3 pictures and display it on her profile page if someone views her page. With that said, would the following work?
User uploads picture from form
Save file information (filename, user info, etc...) into DB and reference URL from S3
Upload photos to S3
When displaying pictures, I'll query the DB for the info and display the images from S3 accordingly.