java - why am i getting file not found exception in phonegap although the file exists -


window.requestfilesystem(localfilesystem.persistent, 0, function(fs){     fs.root.getdirectory("folder1", {       create : false     },function(datadir) {       datadir.getdirectory("folder2", {         create : false       },function(datadir1) {     datadir1.getdirectory("folder3",{       create : false      },function(datadir2) {           datadir2.getdirectory("folder4",{         create:false,       },function(datadir3) {             var reader = datadir3.createreader();             reader.readentries(function(entries){         (var i=0; i<entries.length; i++) {                 entries[i].file(function(file){             alert(file.name);             alert(file.fullpath);           var options = new fileuploadoptions(); options.filekey="uploadfile"; options.filename=file.name; options.mimetype="image/jpeg"; var params = new object();   params.action = "uploadfile";    var ft = new filetransfer(); ft.upload((file.fullpath), "http://server.com/upload.pl", win, fail, options); 

but giving java io exception of file not found. file existing. what's wrong?? help?? giving error code 1 .http_status : 500 giving

it working . there error in server side . thank u all..


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -