0

File upload

asked 2011-02-14 15:08:45 +0800

pas1026 gravatar image pas1026
18

Can some one provide me an example of file upload (zk 5.0) from pure java code?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-02-14 22:04:05 +0800

pas1026 gravatar image pas1026
18

Basically in my zul file, I've the following code:

<zul:button upload="true" onUpload="winUploadImageForm.onUploadImage(event)" label="Ok" id="uploadBtn" /> where 'winUploadImageForm' is teh associated controller class

This zul page appears as below on the IE browser:
Ok
|textbox______________| Browse..

Cancel

How do I get the 'Ok' button to appear below the 'Browse..' button besides the 'Cancel' button?
Also how do I get the selected local file to appear in the textbox by the 'Browse..' button?

Thank you.

link publish delete flag offensive edit

answered 2011-02-25 00:49:11 +0800

SimonPai gravatar image SimonPai
1696 1

Hi pas1026,

Maybe you can consider handling uploading with a single "Upload" button, rather than a bunch of HTML elements?

Regards,
Simon

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-02-14 15:08:45 +0800

Seen: 248 times

Last updated: Feb 25 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More