0

how to fix the fileupload size ..Example i want to fix maximam 5mb.

asked 2011-12-14 11:47:34 +0800

saravanavel gravatar image saravanavel
54

how to fix the fileupload size ..Example i want to fix maximam 5mb.

my code is

<zul:fileupload id = "file" focus="false" onUpload="fileUpload(event.media);" />

am using zk3

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2011-12-15 08:24:29 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

updated 2011-12-15 08:24:56 +0800

Did you try

<zul:fileupload id = "file" focus="false" maxsize="5120" onUpload="fileUpload(event.media);" ></zul:fileupload>

Cheers, Maik

link publish delete flag offensive edit

answered 2011-12-15 12:35:28 +0800

saravanavel gravatar image saravanavel
54

updated 2011-12-15 12:36:30 +0800

i have used below code:

<zul:fileupload id = "file" focus="false" maxsize="5120" onUpload="fileUpload(event.media);" ></zul:fileupload>


But i got error Message like :

org.zkoss.zk.ui.metainfo.PropertyNotFoundException: Method, setMaxsize, not found for class org.zkoss.zul.Fileupload

am using zk.3 version. so please tell other option

by saravanavel

link publish delete flag offensive edit

answered 2011-12-16 07:26:18 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

which version of zk 3 your're currently using ?

the 3.6.4 have this option

http://www.zkoss.org/javadoc/3.6.4/zk/org/zkoss/zul/Fileupload.html#setMaxsize(int)

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-12-14 11:47:34 +0800

Seen: 171 times

Last updated: Dec 16 '11

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