0

Why Fileupload only able to upload file less than 128Kb

asked 2011-12-08 10:11:00 +0800

emriti gravatar image emriti
9

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>

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-12-08 11:23:47 +0800

emriti gravatar image emriti
9

new information :
when i upload avi,doc or xls files it works just fine. but this happen when i upload pdf.
maybe i need to configure something? anyone?

link publish delete flag offensive edit

answered 2011-12-28 07:55:14 +0800

phillipberry gravatar image phillipberry
24 1

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?

link publish delete flag offensive edit

answered 2011-12-28 08:07:23 +0800

phillipberry gravatar image phillipberry
24 1

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?

link publish delete flag offensive edit

answered 2012-03-07 17:46:37 +0800

LarsLi gravatar image LarsLi
18

updated 2012-03-07 17:47:14 +0800

@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.

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-08 10:11:00 +0800

Seen: 372 times

Last updated: Mar 07 '12

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