Sets the ContentType when putting the object in S3

The ContentType was not being set when putting the object in S3.  For example, after uploading an image to S3, when trying to access the URL of the image, the image would then try to download because the content type was set to application/octet-stream.  This sets the ContentType determined by the attachedFile.