SolaraS
Solara16mo ago
Helleeni

How to show progress of FileDrop?

Apparently solara.FileDrop can show the progress of the file being read. This would be great in my app as reading an excel file with few thousand lines can (in my setup) take minutes and it would be great to show progress to the user. I just can't figure out how it should be done?

Documentation says this:

@solara.component
def FileDrop(
label="Drop file here",
on_total_progress: Optional[Callable[[float], None]] = None,
on_file: Optional[Callable[[FileInfo], None]] = None,
lazy: bool = True,
):

I can't find any example as how to implement 'on_total_progress' part to show the progress. Any hint as how it should be done would be great.
Was this page helpful?