1. 程式人生 > >ueditor的上傳存儲問題

ueditor的上傳存儲問題

映射 req () load time fix save 增加 prefix

1、使用了 http://download.csdn.net/download/ouyhong123/8520689 下載的修改版jar包。主要修改是增加了一個地址屬性,ActionEnter的參數。

2、修改 jsp/controller.jsp

String saveRootPath="你的實際地址";//(String)session.getAttribute("infoPath");//
out.write( new ActionEnter( request, saveRootPath,rootPath ).exec() );

3、修改 config.json

"imageUrlPrefix": "你的前綴",

"imagePathFormat": "/image/{yyyy}{mm}{dd}/{time}{rand:6}",

4、修改 tomcat映射路徑

課在catalina重定義你前綴的xml。也可以在server.xml重配置context

ueditor的上傳存儲問題