https://kotlinlang.org logo
#compose-web
Title
# compose-web
s

Stefan Oltmann

12/14/2023, 7:53 PM
Is it even possible yet to upload files in Compose for Web? 🤔
f

Filip Wiesner

12/14/2023, 8:03 PM
WASM?
s

Stefan Oltmann

12/14/2023, 8:04 PM
Yes, Compose for Web WASM
f

Filip Wiesner

12/14/2023, 8:05 PM
Ah OK, never mind 🙂
🙂 1
s

Stefan Oltmann

12/14/2023, 8:06 PM
Im starting to believe it’s not possible yet 😅
o

Oleksandr Karpovich [JB]

12/14/2023, 9:08 PM
It should be possible but using js-interop https://developer.mozilla.org/en-US/docs/Web/API/File_API/Using_files_from_web_applications So you would call js code for that, and then pass file content to k/wasm
s

Stefan Oltmann

12/14/2023, 9:19 PM
Thanks. Is there an example how to use js-interop?
k

Konstantin Tskhovrebov

12/14/2023, 11:45 PM
The same way as for regular js
b

bashor

12/15/2023, 5:06 PM
16 Views