file - Update image path in CKEditor after being received from FileManager -
i using ckeditor fileman file manager handeling file uploads. works fine on local host , there small problem on production environment haven't been able solve playing around configuration.
i'm able upload, edit, delete , select files in fileman seen in next picture.
however, after select file (a picture) example, file path returned in format of: /www/path/to/image.jpg..
the problem "www" part of path not visible online , right path returned editor should /path/to/image.jpg.
example of path returned fileman:
does know how force ckeditor or fileman use publicly visible directory structure? thank you!
there multiple solutions problem:
- set following properties according documentation:
files_root
,return_url_prefix
not recommended:
- create soft link
www
folder (on linux example ln -s /www /www/www)
the second solution lead serious security problems , needs server able follow symlinks apache2 example
edit: missed problem first... solution (in fileman): "the path must absolute site root!" update settings according , work fine.
Comments
Post a Comment