if(dest.exists())
dest.delete();
FileUtil.copyFile(binaryFile, dest);
binaryFile.delete();
AjaxFileUploadListener listener = new AjaxFileUploadListener(dest.length());
FileUploadStats fus = listener.getFileUploadStats();
fus.setBytesRead(dest.length());
fus.setCurrentStatus("done");
request.getSession().setAttribute("FILE_UPLOAD_STATS_" + fieldId, null);
response.getWriter().println("success. File Saved");
}