AND In JomSocial's Backend, click Configuration. From there, click Remote Storage found at the top-left of the configuration bar. Under Storage Methods, choose whether you want to store the data locally, via Local Server, or in the Amazon S3 cloud. For Amazon S3, fill in the required fields with your Amazon S3 details. The Bucket Path here refers to the name of the bucket that you want to store the data. For example, if the URL of your Amazon S3 looks like this: http://bucket-name.s3.amazonaws.com/images/avatar/****.jpg, then the Bucket Name is bucket-name. So maybe for Jomsocla avatars there should be an extra field for bucket name then the new avatar image url can be generated from there. I have other componenets that integrate with Jomsocial that already fetch the avatar whether it is local or on remote stroage.