Login With CometChat Admin panel with your credentials.
Click on "Settings->General" and search for "Storage".
In this section, you will get "Amazon Simple Storage Service (AWS)" option.
Click on that option and Enter AWS Access Key, AWS Secret Key, AWS Bucket, AWS Bucket URL which you will get from Amazon AWS site.
Click on Update.
Clear Cache from Cometchat Admin Panel.
Clear Cache from the browser.