Hi,
I take photos in my app and want to move them to the app data location.
// create photo
Connections {
target: nativeUtils
onCameraPickerFinished: {
if(accepted) {
console.log("New photo path: " + path)
// copy picture
if(fileUtils.copyFile(path, FileUtils.AppDataLocation + "/" + fileUtils.cropPathAndKeepFilename(path)) === false) {
console.error("Cannot copy photo: " + FileUtils.AppDataLocation)
}
[...]
}
}
}
FileUtils.AppDataLocation directs to “17”. So the destination dir is “17/” and it is not possible to copy the file. I thought it should be absolute path to application data dir. Did I miss anything?
I’m using Mac mini for development and test the app on my iPad via the Felgo Live Server.
Regards
Martin