This creates a unique hash for the picture.
Now when the file gets uploaded to S3, it gets saved using the hash.
I also fixed the file extensions so that they aren't statically set to .png
I added the content type to the S3 params so that this way when a browser visits a link from S3 it actually displays the image instead of downloading it. (I think @GrahamBarnard mentioned this before)
This creates a unique hash for the picture. Now when the file gets uploaded to S3, it gets saved using the hash.
I also fixed the file extensions so that they aren't statically set to .png
I added the content type to the S3 params so that this way when a browser visits a link from S3 it actually displays the image instead of downloading it. (I think @GrahamBarnard mentioned this before)