S
Solara4mo ago
PeterT

standard file input using the v-file-input component.

I am trying to implement the ability to upload files using the v-file-input component from vuetify. I got as far as ``` Import reacton.ipyvuetify as rv @solara.component def Page(); file_content = solara.reactive(“”) def file_handler(file_info): fielename = file_info[‘name’]

rv.FileInput(label = “upload file”) But then I don’t know how to connect the component to the file_handler function and get the actual content into memory. I tried to understand the file drop component but wasn’t successful. Too much of a beginner I suppose.
3 Replies
PeterT
PeterTOP4mo ago
I found a quasi solution in the pull requests for solara (pull request 44) that addresses this question. I modified it and the "solution" I am currently using looks lke this: vue file:
MaartenBreddels
MaartenBreddels4mo ago
Hi Peter, I don't see this code in PR 44, but this seems very similar to out FileDrop component, so 👍

Did you find this page helpful?