문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top