6

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?

michael
  • 4,377
  • 8
  • 47
  • 73

1 Answers1

4

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

fernandopasik
  • 9,565
  • 7
  • 48
  • 55
  • To the question of: "Can I use filesystem?", the answer is apparently: "No". So that leads to the next question. Something along the lines of: "What do I use instead?" I would think that a possible solution would be webSQL, but that seems like using a database as a substitute for a text file. – Phillip Senn Apr 25 '16 at 16:31