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
Post a Comment