com.jspsmart.upload.File myFile = mySmartUpload.getFiles().getFile(0);
if (!myFile.isMissing()) {
filename=myFile.getFileName();
String suffix=filename.substring(filename.lastIndexOf('.'));
Date now=new Date();
filename=String.valueOf(now.getTime())+suffix;
url="/download/userdoc/"+filename;
// Save the files with its original names in a virtual path of the web server
myFile.saveAs(url); 作者:
速龙+闪龙 时间: 2006-3-9 13:51