Can someone show me an example how to do file uploads in Compose for Web WASM? I learned in #compose-web that I will need js-interop, but I have no experience with web development.
I want users to select (or drag and drop) a file on disk and get that file content as a ByteArray.
👀 1
✅ 1
r
Robert Jaros
12/15/2023, 6:36 AM
You would need to place an html
<input type='file'>
element somewhere on the page. I'm not sure how to do this in canvas-based compose.
Robert Jaros
12/15/2023, 6:43 AM
Perhaps by some direct DOM manipulation, you could create a floating div with an input element.