Serving images from Amazon S3 in PHP application
Posted
by luckytaxi
on Stack Overflow
See other posts from Stack Overflow
or by luckytaxi
Published on 2010-03-12T19:41:23Z
Indexed on
2010/04/02
19:33 UTC
Read the original article
Hit count: 225
amazon-s3
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.
© Stack Overflow or respective owner