1
카메라 API 코드바에서 기본 이미지 이름 대신 사용자 정의 이미지 파일 이름을 변경하거나 제공 할 수 있습니까? [IOS 및 Android 모두 해당] 버전 Cordova 3.5.0phonegap에서 이미지 파일 이름 변경 또는 편집
카메라 API 코드바에서 기본 이미지 이름 대신 사용자 정의 이미지 파일 이름을 변경하거나 제공 할 수 있습니까? [IOS 및 Android 모두 해당] 버전 Cordova 3.5.0phonegap에서 이미지 파일 이름 변경 또는 편집
var captureSuccess = function (mediaFiles) {
// SystemURI require string and path2 will deal it and must not use file:/(path)
var path = mediaFiles[0].fullPath;
var path2 = path.slice(0, 5) + "//" + path.slice(5);
window.resolveLocalFileSystemURI(path2, successMoveTo, fail);
}
function successMoveTo(entry) {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,
function (fileSys) {
fileSys.root.getDirectory(folder, {create: true, exclusive: false},
function (directory) {
entry.moveTo(directory, file,
success, fail);
}, fail);
}, fail);
}