###
DOI:
计算机系统应用英文版:2014,23(2):230-234
本文二维码信息
码上扫一扫!
基于拦截器机制的编辑器上传附件的自动清理
(中华女子学院 计算机系, 北京 100101)
Interceptor Mechanism Based the Automatic Cleaning of Files Uploaded By the Editor
(Department of Computer, China Women’s University, Beijing 100101, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1652次   下载 3626
Received:July 18, 2013    Revised:August 19, 2013
中文摘要: 在线文本编辑器在web项目中得到广泛应用,针对从网页文档中删除图片、音视频等对象时如何有效清除服务器上相应附件的问题,提出一种在Java EE平台下使用的基于过滤器或拦截器机制的通用方案,在每一次文档操作完成之后,由系统自动清除服务器上无用的磁盘文件; 以FCKeditor编辑器的应用为例,介绍了实现技术和软件实现方法。附件的清理对用户是透明的,且代码易于实现和重用,能够有效而安全地应用于各类涉及内容发布的web系统中。
Abstract:The text editor for internet has been widely used in web projects. In view of the problem how to clean up the corresponding disk files in the server when deleted the objects of the image,audio and video from the content in the editor, a general-purpose sulotion application on Java EE platform was put forward. Based on filters or interceptor mechanism, it could automatically clean up the attachments loaded to the server but of no use whenever the eidt was over. Taking the FCKeditor application for example, the software implementation technology and method was introduced in detail. The cleaning was transparent to user. The sulution is safe and reusable, and also easy to implement. It can effectively apply in various types of web projects related to content publishing.
文章编号:     中图分类号:    文献标志码:
基金项目:中华女子学院2013年度立项项目(JS2013-02009)
引用文本:
陈洁.基于拦截器机制的编辑器上传附件的自动清理.计算机系统应用,2014,23(2):230-234
CHEN Jie.Interceptor Mechanism Based the Automatic Cleaning of Files Uploaded By the Editor.COMPUTER SYSTEMS APPLICATIONS,2014,23(2):230-234