-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi guys,
i've been wondering, why in my place fileupload only able to upload file less than 128Kb.
maybe i got something wrong in my tomcats' config or something, can somebody help me?
Regards.
FYI : i already put max-upload-size in zk.xml.
<?xml version="1.0" encoding="UTF-8"?> <zk> <device-config> <device-type>ajax</device-type> <timeout-uri>/Timeout.zul</timeout-uri><!-- An empty URL can cause the browser to reload the same URL --> </device-config> <library-property> <name>org.zkoss.zul.progressbox.position</name> <value>center</value> </library-property> <system-config> <max-upload-size>5120</max-upload-size> </system-config> </zk>
I'm having the same problem with all files over 128KB - no data is sent up and I end up with a 0 byte array when i call event.media.getByteData().
Anybody know why this could be?
Just found the problem:
You have to increase the WebApp filesize threshold http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zk/ui/util/Configuration.html#setFileSizeThreshold%28int%29
Apparently the "buffer" file isn't created? A bug perhaps?
@phillipberry:
would you mind to share some details of your environment (which app-server? clustering? any exceptions in log?) with us?
I'm experiencing a similar, if not even the same, problem:
http://www.zkoss.org/forum/listComment/18814-FileUpload-throws-NotSerializableException-in-JBoss-Cluster-ZK-6
I'm afraid you are only curing the symptom by raising the threshold for processing in memory, but not the cause.
Asked: 2011-12-08 10:11:00 +0800
Seen: 372 times
Last updated: Mar 07 '12