Fileupload seems not to work when running on a server under linux

asked 2009-03-02 15:46:13 +0800

cvarona gravatar image cvarona
554 1 6


I'm trying to use the 'open as a modal dialog' approach to file uploading in a zul placed in a container running under linux and the behaviour is pretty strange. I get a misplaced closable window which contains a label exhorting me to select the desired files but no button or input field at all, and I also get the following error message:

Invalid ID: z_e3_3!iframe. Cause: reserved words not allowed: [arg, page, session, event, spaceOwner, desktop, self]

The fileupload example in the online demo suffices to test this:

	<button label="Upload">
		<attribute name="onClick">{
			Object media = Fileupload.get(-1);
			if (media instanceof org.zkoss.util.media.Media[]) {
				org.zkoss.util.media.Media[] medias = (org.zkoss.util.media.Media [])media;
				for (int i = 0; i < medias.length; i++) {
					Image image = new Image();
					image.setContent(medias<i >);
			} else if (media != null)
				Messagebox.show("Not an image: "+media, "Error", Messagebox.OK, Messagebox.ERROR);
	<vbox id="pics" />

I'm using zk3.5.2 and ubuntu8.

If anybody can provide any clue as to what is happening (whether I'm doing anything wrong or it's actually a bug) I would be much grateful.

With kind regards

César Varona

delete flag offensive retag edit

3 Replies

Sort by » oldest newest

answered 2009-03-04 07:17:57 +0800

PeterKuo gravatar image PeterKuo
481 2

It's strange, this error has never be reported.
Because id is generated and manipulated by ZK,
I think it's a bug, please post it to bug tracking, thank you.

In bug tracking, please tell us your environment in detail,
such as container type, and the stack trace of the error.

link publish delete flag offensive edit

answered 2009-03-04 09:56:14 +0800

cvarona gravatar image cvarona
554 1 6


link publish delete flag offensive edit

answered 2009-03-05 08:30:21 +0800

PeterKuo gravatar image PeterKuo
481 2

Sorry, ZK can't replicate your case. We tried in zk3.5.2 + maven-jetty
6.1.14 + ubuntu 8 + Firefox 3. And use zk demo as test case.

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




Asked: 2009-03-02 15:46:13 +0800

Seen: 223 times

Last updated: Mar 05 '09

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