내 코드는 다음과 같습니다. 이 코드는 Android에서 작동합니다. 하지만 그것은 ios에서 작동하지 않습니다. 경로가 잘못 되었기 때문입니다. 경로 란 무엇입니까? filename은 cordova.file.externalApplicationStorageDirectory
를 사용하는코드 바 파일 전송 경로?
onFileSaving: function (fileWillCreate) {
window.resolveLocalFileSystemURL(cordova.file.externalApplicationStorageDirectory, function (dirEntry) {
dirEntry.getFile(fileWillCreate.fileName + '.xlsx', { create: true, exclusive: false },
function (fileEntry) {
fileEntry.createWriter(function (fileWriter) {
fileWriter.onwriteend = function() {
console.log("Dosya yazıldı:" + fileEntry.fullPath);
alert('Dosyanız Başarıyla Kaydedildi'+fileEntry.fullPath);
};
fileWriter.onerror = function (e) {
console.log("Dosya yazılırken hata oluştu: " + e.toString());
};
fileWriter.write(fileWillCreate.data);
})
})
})
}