Check file format before Sending

Hi folks
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 doesnt 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 CustomInput prop as i am fine with the default one

kindly assist me how to achieve this, inorder for better understanding i have created a codesandbox, here is the Sandbox Link

1 Like

i referred this part of doc

still not able to achieve it