0
當使用FileWriter
保存文件時,錯誤和成功回調觸發兩者。這隻發生在某些android設備上(v4.3 & v5),而在其他設備上工作。插件版本爲2.0.0同一個寫入中的錯誤和成功回調
FileError
的代碼爲6,它是「NO_MODIFICATION_ALLOWED_ERR」。
這裏是一些代碼:
this.cwd.getFile(id, {create: true}, function(file) {
file.createWriter(function(writer) {
writer.onerror = fail;
writer.onwriteend = function() {
success(id, file.toURL());
};
writer.write(blob);
}, fail);
}, fail);
在插件漏洞?