1

Override the Zk error modal window and its message

asked 2016-09-29 09:11:51 +0800

psingh gravatar image psingh flag of India
963 8

updated 2016-09-29 09:33:53 +0800

Hi

I am restricting the user to upload the maximum size not greater than 50 mb. So I have set maxsize as 50 mb in fileUpload code below:

<dropupload  style="color:#ccc;height:50px;"  onUpload="@command('onFileUpload')"
                                         width="100%"  maxsize="51200">
                                    </dropupload>

When the user uploads the file greater than 50 mb, zk error modal popup is shown. I want to override that error window with my customised error.

Can we override Zk message to my own custom messages with styles in ZK?

delete flag offensive retag edit

Comments

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-09-30 02:01:08 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2016-09-30 02:02:08 +0800

According to the docs you can customize the button-upload error message since ZK8.0.0 and this has been added to Dropupload in 8.0.2 http://tracker.zkoss.org/browse/ZK-3086 (also contains a workaround for older versions)

Did you try that already? Did it fail?

https://www.zkoss.org/wiki/ZKComponentReference/EssentialComponents/Dropupload#CustomizeUploadSizeExceeding_Message

https://www.zkoss.org/wiki/ZKComponentReference/EssentialComponents/Button#CustomizeUploadSizeExceeding_Message

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2016-09-29 09:11:51 +0800

Seen: 29 times

Last updated: Sep 30 '16

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