UIKit allowed attachment file types

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:

  1. renderMessageInput could get some event handlers though parameter like onFileUpload so it is easier to rewrite the input component without having to rewrite code that handles all of the complex file upload logic.
  2. some React hook that enable to handle file uploads.