ios - How to move/copy a file from one one location to the other using phonegap -


i using phonegap file api having trouble copying file 1 location other.

  • my targeted device ios(ipad)

  • my ios version 9.2.1

  • i working on windows platform

  • i using phonegap build

my requirement :

i capturing video , getting saved in temp folder default here location getting saved (/private/var/mobile/containers/data/application/2183897e-3660-4145-a822-76f5b763e48d/tmp/capture-t0x17e7cae0.tmp.avqbi2/capturedvideo.mov)

so want move (capturedvideo.mov) video photo album location in ipad

this code trying make work.

function success(entry) { console.log("new path: " + entry.fullpath); }  function fail(error) { alert(error.code); 

}

function movedir(entry) { var parent = document.getelementbyid('parent').value,     parentname = parent.substring(parent.lastindexof('/')+1),     newname = document.getelementbyid('newname').value,     parententry = new directoryentry(parentname, parent);  // move directory new directory , rename entry.moveto(savetophotoalbum, newname, success, fail); 

}

any or working examples great.

thanks

nik`

this not possible on ios, because apple not allow move videos, images or other files out of app sandbox other folders. reason standard-camera on ipad/iphone able place pictures there because built-in feature has special permissions third-party app not able get.
of course true long device not jailbroken.
for more infos, concerning file-system layout , allowed store, should take @ cordova-file-plugin readme on github:
https://github.com/apache/cordova-plugin-file


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -