Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2421

File upload not working on the first browse/select, only on the second browse/select (on Windows 7-8)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • None
    • 7.0.3
    • Components
    • client browsers on Windows 7-8, server tomcat 7.0.40/liferay 6.1/java 7

      File upload not working on the first open to browse/select. Any button, select or close action will only flash/refresh/reopen the file browser, after that it works OK as it normally does.

      We use the same code as from http://www.zkoss.org/zkdemo/file_handling/file_upload

      <zk>
      <button label="Upload Image" upload="true,maxsize=300">
      <attribute name="onUpload"><![CDATA[
      org.zkoss.util.media.Media media = event.getMedia();
      if (media instanceof org.zkoss.image.Image)

      { org.zkoss.zul.Image image = new org.zkoss.zul.Image(); image.setContent(media); image.setParent(pics); }

      else

      { Messagebox.show("Not an image: "+media, "Error", Messagebox.OK, Messagebox.ERROR); break; }

      ]]></attribute>
      </button>
      <separator />
      <vlayout id="pics" height="360px" style="overflow:auto" />
      </zk>

            DevChu DevChu
            thanhhx thanhhx
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: