-
FEATURED COMPONENTS
First time here? Check out the FAQ!
how to maximize the size of a file uploaded i create component in my controller like this
Button buttonUpload = new Button("Ajouter un fichier");
buttonUpload.addEventListener(Events.ON_UPLOAD, new EventListener<UploadEvent>() {
@SuppressWarnings("unchecked")
@Override
public void onEvent(UploadEvent event) throws Exception {
------------------- traitement--------------
}
in zk.xml i try to do this <system-config> <max-upload-size>-1</max-upload-size> </system-config>
i got this error :
11:25:54,879 GRAVE [org.zkoss] (http-localhost-127.0.0.1-8080-3) Failed to upload
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (7559608) exceeds the configured maximum (5242880)
i need help
Have you tried:
http://books.zkoss.org/wiki/ZKComponentReference/Essential_Components/Fileupload
http://www.zkoss.org/javadoc/7.0.1/zk/org/zkoss/zul/Fileupload.html
http://www.zkoss.org/javadoc/7.0.1/zk/org/zkoss/zul/Button.html#setUpload(java.lang.String)
<button label="Upload" upload="true,maxsize=-1,multiple=true,accept=audio/*|video/*|image/*,native"
maxsize: the maximal allowed upload size of the component, in kilobytes, or a negative value if no limit.
Asked: 2014-04-10 12:36:15 +0800
Seen: 34 times
Last updated: Apr 14 '14
How to stop combining commands in an ajax call ?
zk developmet is esay [closed]
Need help with scrolling horizontal tabs in Right-to-Left (Arabic)
Create tab dynamically, multitab application
Radio button value change on database value
How to implement, each user has its own session timeout time
Scroller on listbox doesn't work on mobiles / tablets