keving
21

wuaaa! I need help, im new working with ZK, well i need show the url from a fileupload but, i can because
the fileupload is a botton and it don't have textbox, i try to get the filename and put on in a textbox but I do not find,
tell me pleas how to use fileupload and then how to get each cells. tnks for you help.

delete retag edit

## 3 Replies

jumperchen
3909 2 8
http://jumperchen.blogspo...

You can use media.getName()
For example,

org.zkoss.util.media.Media media = event.getMedia();
alert(media.getName());

keving
21

thanks for your help, I had already tried, but i have a problem with the getMedia() method the mistake that show me it is "The method getMedia() is undefined for the type Event"

RichardL
768 4

You need to cast the event to UploadEvent. Try this:

UploadEvent e = (UploadEvent) event;

[hide preview]