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){
for (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);
但这给了 java io 找不到文件的异常。但是文件是存在的。怎么了??有什么帮助吗??它给出错误代码 1 .http_status : 500 它给出