Short version: on file upload, I want to clear the div, then populate new children into that div. Everything works except the clear part.
I am trying to upload a pdf file and extract certain information from it. All of that works fine, but I have a display issue. When I first load the page, the results div is empty and I populate it. When I upload a subsequent file, the div does not clear until the analysis is completed. I would like to clear the div on file upload and then populate the div when the analysis (which takes several seconds for large files) is complete.
I tried making two callbacks, but that is not allowed because they both use the same inputs and outputs. I suspect that I need one callback to update some hidden element and then use the hidden element as the trigger for a second callback, but then I do not see how to coordinate the upload and the div that I want to modify.
I’ve done this kind of thing before using Flask, but I thought that I would give Dash a try.
Thanks,
Herb