Upload file - clear from system after use

Hello,

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??

1 Like