Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

requestFileSystem ok on Chrome, but undefined on Safari7 and mobile Chrome/Safari

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?

like image 381
michael Avatar asked Mar 25 '14 15:03

michael


1 Answers

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

like image 159
fernandopasik Avatar answered Oct 25 '22 15:10

fernandopasik