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

Filedownload with file name contain empty string become to "+" sign in IE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.6
    • Fix Version/s: 6.5.7, 7.0.3
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
    • Environment:

      IE

      Description

      The downloaded file name with empty string become '+' sign in IE
      Reproducible sample:

      <zk>
      	<zscript><![CDATA[
      	import org.zkoss.zul.Filedownload;
      	import java.io.InputStream;
      	import java.io.ByteArrayInputStream;
      	import org.zkoss.util.media.AMedia;
      	import java.net.URLEncoder;
      	import org.zkoss.lang.Strings;
      	
      	void download() throws Exception {
      		InputStream is = new ByteArrayInputStream("test".getBytes("utf-8"));
      		AMedia media = new AMedia("測 試", "txt", "text/plain", is);
      		Filedownload.save(media);
      	}
      	]]></zscript>
      	<button label="download" onClick="download()">
      	</button>
      </zk>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jumperchen jumperchen
              Reporter:
              vincentjian vincentjian
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: