java-张侃― struts2-上传功能 (三)
Utils.copyFile(uploadFile, new File(file, System.currentTimeMillis()+ "_" + uploadFileName[i])); www.2cto.com
}
return "upload";
}
} catch (IOException e) {
e.printStackTrace();
}
return "fail";
}
}