How to get Upload component's Textfield Filename in Vaadin

Sir,

      In my Vaadin project , i am using Upload component as a Filechooser only . I don't know how to get the filename which is selected by the user from the component.

Please give some solution because i used this component many part of my project. If you have any code please give me. It will be very helpful to me.

Thank you sir.

just use the listener for that and get the file name using "event.getText()‘’…
i am using like this only…

Sir,

   Which type of listener are you using for the upload component ?  I used all type of listener it is not working for me .

    Could you give some example code ?

Thank you sir.

hi…
use this listener for to get the file and “upload.addListener(StartedEvent.class, this, “fileUploadAction”);” and then implement the default method which it will give and use event.getText() then u will get the fname