Skip to content

Commit

Permalink
local file picker requires private page (fixes #3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed May 16, 2024
1 parent afaa50f commit 85b1249
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/local_file_picker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ async def pick_file() -> None:
result = await local_file_picker('~', multiple=True)
ui.notify(f'You chose {result}')

ui.button('Choose file', on_click=pick_file, icon='folder')

@ui.page('/')
def index():
ui.button('Choose file', on_click=pick_file, icon='folder')


ui.run()

0 comments on commit 85b1249

Please sign in to comment.