✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Upload file - clear from system after use


I’m building a dashboard where uploaded data is read, and then stored into SQL. The user will be able to select different “projects” and then upload a data set for the chosen project.

My problem is that once a user uploads data, the contents of that element is populated. If they then change anything on the page (dropdown, etc) the file upload callback is triggered again, uploading the file a second time.

How can I clear all the upload data so it is not triggered until a new file is uploaded again??