//file limit size of five megabytes
MultipartRequest mpr = new MultipartRequest(
req,webTempPath,5 * 1024 * 1024,new MyFileRenamePolicy());
Enumeration enum = mpr.getFileNames();
StringBuffer buff = new StringBuffer("");
for (int i = 1; enum.hasMoreElements();i++){
buff.append("The name of uploaded file ").append(i).
append(" is: ").
append(mpr.getFilesystemName((String)enum.nextElement())).
append("<br><br>");
}//for
//return the String
return buff.toString();