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);