In order for you to allow access to file share and read.
Step 1:
Login to CometChat admin panel.
Step 2:
From Left Menu Click on "Settings->Features"
Step 3:
Search for "Send A File". Enable for "Group" & "One-One".
Step 4:
Keep disabled all the other features.