if(img == null){
msgs.add(ERROR_KEY, new ActionMessage("error.upload_failed"));
break;
}
//д�뵽���ݿ�
PhotoBean pbean = new PhotoBean();
pbean.setSite(site);
pbean.setUser(loginUser);
if(StringUtils.isNotEmpty(photo1.getName())){
pbean.setName(super.autoFiltrate(site, photo1.getName()));
}
else
pbean.setName(img.getName());
pbean.setDesc(photo_desc);
if(StringUtils.isNotEmpty(photo1.getKeyword())){
if(site.isFlagSet(SiteBean.Flag.ILLEGAL_GLOSSARY_IGNORE))
pbean.setKeyword(photo1.getKeyword());
else
pbean.setKeyword(DLOGSecurityManager.IllegalGlossary
.deleteIllegalWord(photo1.getKeyword()));
}
pbean.setPreviewURL(img.getPreviewURL());
pbean.setImageURL(img.getImageURL());
pbean.setPhotoInfo(img);
pbean.setFileName(super.autoFiltrate(site,img.getFileName()));
pbean.setStatus(photo1.getStatus());//������������
PhotoDAO.create(album, pbean, (photo1.getCover()==1));
}catch(IllegalAccessException e){
msgs.add(ERROR_KEY, new ActionMessage("error.access_deny", e.getMessage()));
break;
}catch(Exception e){