Question

I'm trying to test the HTML5 FileReader API FileReader.readAsDataURL(file) on mobile but I'm running into problems. It works fine in desktop Chrome, but fails in Safari and mobile Chrome/Safari

I'm using this line: window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem // window.requestFileSystem is undefined on Safari and mobile

Is there a trick or a setting that I am not using?

Was it helpful?

Solution

This API is deprecated. Look at this article by Eric Bidelman:

http://www.html5rocks.com/en/tutorials/file/filesystem/

Also look at compatibility at:

http://caniuse.com/#feat=filesystem

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top