WebFileUploader clear list

Is there a way to clear the WebFileUploader list? I can’t seem to find how to clear the WebFileUploader through a button that is not on the control itself?


  • I have a form that uses the WebFileUploader to attache a file to the form content.
  • I have provided the ability for the user to clear the entire form before submitting, and that should include the WebFileUploader.
  • I would like the same functionality as Listbox.DeleteAllRows

Thank you in advance. :slight_smile:

Where oUploader is the instance of your upload object on the page.

for i as Integer = (oUploader.FileCount - 1) DownTo 0


Thank you @Tim Parnell