<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="cn.com.jspsmart.upload.*"%>
<%
String tp=mySmartUpload.getRequest().getParameter("tp");
File f;
for (int i=0;i<fs.getCount();i++){
f=fs.getFile(i);
String path="/sc/xxfb/"; if (f.getFileName().length()>0){
if(i==0){
String filename="sctp"+f.getFileName().substring(f.getFileName().lastIndexOf("."),f.getFileName().length());
f.saveAs(path+filename); //更改上传文件名
tp=filename;
}
}
}
if(tp==null){
tp="null";
}
%>
<%@ page import="cn.com.jspsmart.upload.*"%>
<%
String tp=mySmartUpload.getRequest().getParameter("tp");
File f;
for (int i=0;i<fs.getCount();i++){
f=fs.getFile(i);
String path="/sc/xxfb/"; if (f.getFileName().length()>0){
if(i==0){
String filename="sctp"+f.getFileName().substring(f.getFileName().lastIndexOf("."),f.getFileName().length());
f.saveAs(path+filename); //更改上传文件名
tp=filename;
}
}
}
if(tp==null){
tp="null";
}
%>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货