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

Filedownload not working on iOS 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: 8.0.3
    • Fix Version/s: None
    • Component/s: Browser Issue
    • Security Level: Jimmy
    • Labels:
    • Environment:

      iPhone iOS 10 (safari)
      iPad mini iOS 10 (safari)

      Description

      Steps to Reproduce

      download the image from https://www.zkoss.org/zkdemo/file_handling/file_download

      Actual Result

      on iPad (iOS 9.3.5) download works as expected
      on iPad mini: popup warning is displayed, download continues after allowing
      on iPhone: no warning at all download is ignored

      Expected Result

      working download (within the usual limitations of iOS devices)

      Debug Info

      • using chrome on iOS there is no such issue
      • iPhone 8 Plus, iOS 15.2.1 still has the bug

      Root Cause

      iOS' popup blocker is enabled by default blocking downloads triggered from the server side.
      disabling the popup blocker will give the user the option to "allow" the popup/download.

      Workaround

      use direct download links instead
      https://www.zkoss.org/javadoc/8.0.0/zk/org/zkoss/zk/ui/Desktop.html#getDownloadMediaURI(org.zkoss.util.media.Media,%20java.lang.String)
      or
      https://www.zkoss.org/javadoc/8.0.0/zk/org/zkoss/zk/ui/Desktop.html#getDynamicMediaURI(org.zkoss.zk.ui.Component,%20java.lang.String)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: