Trigger file selection dialog from button (Solved)
-
Hi there
This seems to be trickier than I thought. I would like to trigger a file selection dialog by pressing the button as so:
The result I want from that is the path to the local file.
I have tried a few online examples of using the q-field with type=“file” and then hiding it but wasn’t able to get it working. Also I found the approach overly awkward. What is the proper way of doing this?
cheers,
Michael -
have tried a few online examples of using the q-field with type=“file”
You mean q-input, don’t you?
Scott
-
@s-molinari yes, sorry! It’s
<q-input type="file" .../>
-
Like this? https://codepen.io/smolinari/pen/abbYdMK?editors=1010
Scott
-
@s-molinari Yep, exactly like that! Thanks