javascript - Problems saving file in Android -


trying develop android app on here should save audio recording , pipe through functions push backend service.

right failing @ first step. appreciate if point out code supposed doing , why may failing.

window.requestfilesystem(localfilesystem.temporary, 0, gotfs, fail);  function gotfs(filesystem) {       console.log(filesystem + " gotfs function");       filesystem.root.getfile(audiodata[0].name, null,                                gotfileentry, console.log("gotfs failed")); } 

fixed!

the problem second parameter in

filesystem.root.getfile(audiodata[0].name, null, gotfileentry, console.log("gotfs failed"));

it should :

filesystem.root.getfile(audiodata[0].name, {create : true}, gotfileentry, fail);


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -