javascript - CKFinder 3 adds extra / in path -
i've defined resource types in ckfinder 3. config.php
, here end , resource type definitions:
$config['backends'][] = [ 'name' => 'default', 'adapter' => 'local', 'baseurl' => '/images', 'root' => '/var/www/mysite/images', 'chmodfiles' => 0640, 'chmodfolders' => 0750, 'filesystemencoding' => 'utf-8' ]; $config['resourcetypes'][] = [ 'name' => 'images', 'maxsize' => "2m", 'url' => '/images', 'allowedextensions' => 'gif,jpeg,jpg,png,pdf', 'backend' => 'default' ];
when use 1 select image in ckeditor (using standard image2
plugin), adds trailing slash after baseurl
, before rest of path. browsing , uploading works correctly, , can see internally it's not using slashes on folder or file names, yet when select image there in ckeditor, gains slash:
the url of selected image should /images/apitest/butterfly.png
, it's returning /images//apitest/butterfly.png
i can see not happen on ckeditor site demos, can't see i'm doing different.
it may happening in other places, it's common double-slashes in urls ignored, may not causing obvious problems.
you're missing "directory"
config key. if add ok.
currently marked optional in docs. should updated either not optional or make behave same empty "directory"
config key.
Comments
Post a Comment