if(loginUser!=null){
super.doPost(req, res);
Integer errno = (Integer)req.getAttribute("errno");
if(errno!=null && errno.intValue()==0){
//д���ϴ���Ϣ����
FckUploadFileBean fbean = new FckUploadFileBean();
try{
Long fileSize = (Long)req.getAttribute("file.size");
Integer fileType = (Integer)req.getAttribute("file.type");
String savePath = (String)req.getAttribute("file.path");
String uriPath = (String)req.getAttribute("file.uri");
if(fileSize!=null)
fbean.setFileSize(fileSize.intValue());
if(fileType!=null)
fbean.setFileType(fileType.intValue());
fbean.setSavePath(savePath);
fbean.setUri(uriPath);
HttpSession ssn = req.getSession(true);
//SESSION_IDͬʱ������Cookie�з�ֹ
RequestUtils.setCookie(req, res, Globals.SESSION_ID_KEY_IN_COOKIE, ssn.getId(),-1);
fbean.setSessionId(ssn.getId());
fbean.setUser(new UserBean(loginUser.getId()));
fbean.setUploadTime(new Date());
FCKUploadFileDAO.createUploadFileItem(fbean);
}catch(Exception e){
log.error("Writting upload file info failed.", e);
}
}