-
Hi, this package is so cool. I'm trying to use an input to get an image from the client into bytes (or anything I can open with PIL on the server side). I've tried to use the @events.on("change")
def on_change(event: Dict[str, Any]) -> None:
value = event['target']['result']
update_image_bytes(value)
return idom.html.input(
{
'id': 'image-input',
'type': 'file',
'hidden': True,
'accept': 'image/*'
},
event_handlers=events
) I also think that I could do it if I could access the input like To be clear, I don't really want to post/upload, I'm basically just trying to display the file after being b64 encoded and used as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I've created an issue to track this: #375 |
Beta Was this translation helpful? Give feedback.
I've created an issue to track this: #375