new File(matter.file) 其中matter.file就是图片文件,服务器端采用如下代码:
import("ORG.Util.FileUpload");
$file = $_GET['file'];
$savePath = date('Y/m', time());
$up = new FileUpload(array('israndname'=>true,'savepath'=>'./Upload/images/'.$savePath));
$up->uploadFile($file);    
if('' != $up->getErrorMsg()) {
//捕获上传异常
$this->error($up->getErrorMsg());
} else {
//取得成功上传的文件信息
$f = $up->getUploadFileName();
$arr['file'] = $f;
}
}但是却无法上传,请教是哪里出了错误?先谢谢各位了。		最佳答案
		