【发布时间】:2016-08-25 04:21:00
【问题描述】:
我们想使用我们尝试过的文件插件从cordova.file.tempDirectory 读取图像名称
$cordovaFile.readAsText(cordova.file.tempDirectory)
.then(function (success) {
console.log("success2"+success);
}, function (error) {
console.log("error"+error);
});
But We got error
ERROR: Wrong type for parameter "path" of DirectoryEntry.getFile: Expected String, but got Undefined.
2016-08-25 09:23:28.958 DPOD[3482:38292] Error in Success callbackId: File1548160221 : TypeError: Wrong type for parameter "path" of DirectoryEntry.getFile: Expected String, but got Undefined.
cordova.file.tempDirectory 只有 10 个图像。所以我们需要 10 个图像名称。告诉我我们的代码有什么问题。请指导我们。
【问题讨论】:
标签: angularjs file cordova ngcordova cordova-plugin-file