0

Hide "c:\fakepath\some_file.txt" from upload process dialog

asked 2015-12-14 15:32:29 +0800

MadJackal gravatar image MadJackal
33

Hi. I need help. We use zk 7.0.6 and then user upload a huge file via button with upload attr, while file uploading he can see progress bar and text like "c:\fakepath\uploadingFile.ext" I know about browser security restrictions, and I don't want to show him real path, a want that uploading dialog show only file name without path. I tried to find how customize uploading dialog in google, but find nothing. This happened not in all browsers.

this my upload button code <button id="uploadDistBtn" label="Upload" upload="true,native,maxsize=-1" onupload="@command('upload')" zclass="btn btn-sm btn-success"/>

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2015-12-16 09:30:48 +0800

Darksu gravatar image Darksu
1991 1 4

Hello MadJackal,

You could create a custom component or a composite component:

http://books.zkoss.org/wiki/ZKDeveloper'sReference/UIComposing/CompositeComponent

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2015-12-15 07:18:18 +0800

MadJackal gravatar image MadJackal
33

Darksu, thank you. Its exactly what i want.

Can i set my custom uploading dialog somewhere in config for all upload components?

link publish delete flag offensive edit
0

answered 2015-12-14 20:33:39 +0800

Darksu gravatar image Darksu
1991 1 4

Hello MadJackal,

Please check out the File Upload with a Customized File Viewer section of the following small talk:

http://books.zkoss.org/wiki/SmallTalks/2009/July/ZK5:NewFile_Upload

Best Regards,

Darksu

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: 2015-12-14 15:32:29 +0800

Seen: 43 times

Last updated: Dec 16 '15

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