angular-imgcache.js icon indicating copy to clipboard operation
angular-imgcache.js copied to clipboard

"WARN: Your browser does not support the html5 File API"

Open bastiwasni opened this issue 10 years ago • 2 comments

Hi there!

I am developing an ionic app and mentioned that in my firefox (developer edition) i get this error: "WARN: Your browser does not support the html5 File API".

The images are not displayed.

Any ideas how to fix that?

bastiwasni avatar Mar 24 '15 09:03 bastiwasni

Happens the same in Safari. My guess is that it's trying to use the Filesystem & FileWriter API which is only supported by chrome http://caniuse.com/#feat=filesystem No ideia on how to fix it. Decided to implement my own basic solution, storing the base64 of the images on local storage.

pedroabreu avatar Mar 24 '15 09:03 pedroabreu

imgcache.js is essentially useless for every browser besides Chrome and iOS/Android shimmed with Cordova. Ideally, if there is no FileSystem support, this directive should just display the image using the original URL. The service can do this (see https://github.com/chrisben/imgcache.js#high-level-api), but the directives apparently do not.

@jBenes would you merge a PR with this fallback logic in place? Or does it make more sense to create the logic externally and have a conditional ng-if on eveywhere img-cache is used?

simpixelated avatar Nov 10 '15 21:11 simpixelated