Is clearUploads() of FileUpload component working?

Hi,

I'm trying to use clearUploads() in a Button Click Event just to clear the component appearance but is not resetting the component.

I'm new at programming but I read that the line to use it is:
self.getSibling("FileUpload").clearUploads()

Maybe the problem is the syntax, if so please let me know how to declare it.

Are you testing in the designer? It doesn't work in the designer for me but does in the browser.

Yes that was the problem, I just tested in the browser and it worked.

Thank you!