var server="your serever address";
var task=plus.uploader.createUpload(server,
{method:"POST"},
function(t,status){ //上传完成
alert(JSON.stringify(t));
alert(status);
if(status==200){
}else{
}
}
);
for(var key in filedata){
if(task.addData(key,filedata[key])){
alert(key+","+filedata[key]);
}else{
alert(key+",error,"+filedata[key]);
}
}
task.addFile(filedata.filepath,{key:filedata.filename});
task.start();
ThinkCMF
- 发布:2015-09-24 10:38
- 更新:2015-09-24 10:38
- 阅读:1354
0 个回复