Upload caption update does not work

I need to update the Upload field caption. Calling setCaption method does not work.
Is there another way to do this ?

The method for some reason is

I guess this is just for the toggle button itself. I need to change the upload field’s label.
As in the sample :

Upload upload = new Upload("Upload it here", receiver); I would like to change “Upload it here” label. This might be done using setCaption() method, isn’t it ?

The problem is fixed. There were a bug, setCaption was not called on the Upload component but on the parent abstract component.