I've setup Amazon S3 to host my user avatars, but the problem I'm having is how to display the default avatar if a user hasn't uploaded a photo. Is there a way to return an image on 404?
I want to minimize overhead and have it so a user image has a url like this:
http://example.s3.amazonaws.com/avatar/52752545b960b3181226a2f346e2f466714_64.jpg
Where the hash before '_64' is the userid hashed with a salt, and '64' being the dimension. This way I don't have to check on my server whether the user has uploaded an photo or not on every avatar display.
Thanks in advance