i am using this package “@sendbird/uikit-react”: “^3.1.1”
,
I want to restrict few file formats plus I am using renderMessage
prop to show CustomMessageItem
, there is another prop in Channel onBeforeSendFileMessage
which I am using for checking the file format incase someone doesn't upload an important file to other as we are using it for internals
Issue I am facing is i am able to check but not able to send the file or u can say call the sendFileMesage
method correctly,
Also i am not using renderMessageInput
prop as I am fine with the default Input
kindly assist me how to achieve this, inorder for better understanding i have created a codesandbox, here is the Sandbox link
in sandbox kindly uncomment line 66 to use handleSendFileMessage
this is the doc link which i am referring,