cider icon indicating copy to clipboard operation
cider copied to clipboard

Exporting blobs with Chrome on iOS not working

Open hristoiankov opened this issue 2 years ago • 2 comments

Exporting files (pdf export, png export, database export) with Chrome on iOS does not work. After the progress bar hits saving file, nothing happens.

FileSaver.js open ticket: https://github.com/eligrey/FileSaver.js/issues/735

From their documentation on iOS: "saveAs must be run within a user interaction event such as onTouchDown or onClick; setTimeout will prevent saveAs from triggering. Due to restrictions in iOS saveAs opens in a new window instead of downloading, if you want this fixed please tell Apple how this WebKit bug is affecting you."


A workaround has been pushed in that uses FileReader to at least get some download coming out, but it seems there is also a file size limitation. Any file over ~1.4MB will not download. ~~This limitation could be caused by FileReader.readAsDataURL().~~

hristoiankov avatar Mar 02 '22 00:03 hristoiankov

JSFiddle for testing: https://jsfiddle.net/oen0ja4m/2/

hristoiankov avatar Mar 02 '22 00:03 hristoiankov

The ticket to follow for this issue is on the Chromium project: https://bugs.chromium.org/p/chromium/issues/detail?id=1252380

There's nothing that can be done on CIDEr's end to mitigate this issue.

hristoiankov avatar Mar 02 '22 02:03 hristoiankov