My goal is to narrow down the list of possible file types to be sent though chat. I know currently it’s not possible to fully control that from the backend perspective, but I thought I would begin from the frontend side. Currently I just had to write some hacky code to get around that, so it would be nice if opened conversation component exposed prop that enables to define what file extensions are allowed to be sent though attachment upload feature: <input type="file"> - HTML: HyperText Markup Language | MDN .
Another features that if implemented would made this bit harder but still possible to implement without hacks:
renderMessageInputcould get some event handlers though parameter like
onFileUploadso it is easier to rewrite the input component without having to rewrite code that handles all of the complex file upload logic.
- some React hook that enable to handle file uploads.