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它正在给出
答案 0 :(得分:0)
现在正在运作。服务器端出错。 谢谢大家..