Revision history [back]

click to hide/show revision 1
initial version

asked 2009-07-08 06:32:48 +0800

timshiu gravatar image timshiu

Get file from XHtml input tag

I would like to ask if we can get the file binary from XHtml input tag in zscript???? e.g. <zk> <window title="File Upload" border="normal" xmlns:h="&lt;a href=" http:="""" 1999="" xhtml"="">"> <h:input id="fileUpload" type="file"/> <button label="Test"> <attribute name="onClick"> // Get the file binary from fileUpload control // .... </attribute> </button> </window> </zk>

I know that we can use FileUpload control instead. But I got an error when Upload button in FileUpload control is clicked. Error message: org.apache.commons.fileupload.servlet.ServletFileUpload.setProgressListener(Lorg/apache/commons/fileupload/ProgressListener;)V

My situation is quite complicated. The zul page is put inside a iframe which is belongs to a porlet in a Portal page. The FileUpload control is worked fine in the zul page alone but not inside the iframe of the porlet.

So I would like to find a workaround for file uploading. I'm using ZK 3.6.2. Thanks.

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