grails-ckeditor
grails-ckeditor copied to clipboard
A bug that seems to ignore the baseDir configuration
Probably a bug that causes baseDir configuration to be ignored is baseurl configuration is not defined.
Source File : https://github.com/stefanogualdi/grails-ckeditor/blob/3.6.x/grails-app/controllers/org/gualdi/grails/plugins/ckeditor/OpenFileManagerConnectorController.groovy
OpenFineManagerConnectorController#Line 206
if (config?.upload?.baseurl) { baseDir = PathUtils.checkSlashes(config?.upload?.basedir, "L+ R-") + PathUtils.checkSlashes(baseUrl, "L+ R+") } else { baseDir = servletContext.getRealPath(baseUrl) baseDir = PathUtils.checkSlashes(baseDir, "R+") }
onfig?.upload?.baseurl should be onfig?.upload?.basedir
Why do you think it is a bug? Maybe my documentation is not clear about this setting , and this is the real bug :)
You have to define ckeditor.upload.baseurl only if you want to serve the uploaded files outside of the web space of the application. In this case ckeditor.upload.basedir is considered as the absolute path to the storage area on the file system.
Please take a look here: http://stefanogualdi.github.io/grails-ckeditor/docs/index.html#configuration