发布网友 发布时间:2022-04-24 05:10
共1个回答
热心网友 时间:2023-10-30 22:55
用JSPSMART处理,参考下面代码实现
<%
//程序初始化 下面设置成要保存的文件夹
String path_tmp = request.getRealPath("/") + "Upload";
String filename_p = "Test";
String path_new = request.getRealPath("/") + "Upload\\" + filename_p;
//文件上传
SmartUpload su = new SmartUpload();
su.initialize(pageContext);
su.upload();
int count = su.save(path_tmp);
//参数提取,后面贴不了,说我的重复内容多,这玩意真差...
%>
热心网友 时间:2023-10-30 22:55
用JSPSMART处理,参考下面代码实现
<%
//程序初始化 下面设置成要保存的文件夹
String path_tmp = request.getRealPath("/") + "Upload";
String filename_p = "Test";
String path_new = request.getRealPath("/") + "Upload\\" + filename_p;
//文件上传
SmartUpload su = new SmartUpload();
su.initialize(pageContext);
su.upload();
int count = su.save(path_tmp);
//参数提取,后面贴不了,说我的重复内容多,这玩意真差...
%>