barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 169 forks source link

How to change full image url with domain to path? #181

Open lotarbo opened 7 years ago

lotarbo commented 7 years ago

in ckeditor4.php I can change window.opener.CKEDITOR.tools.callFunction(funcNum, file.url); to window.opener.CKEDITOR.tools.callFunction(funcNum, file.path); but i think its not good, what is the best way?

I mean I don't need domain when selected file

garbinmarcelo commented 6 years ago

any solution?

ganjargal commented 6 years ago

config/elfinder.php

'roots' => [
        [
            'driver'        => 'LocalFileSystem',   // driver for accessing file system (REQUIRED)
            'path'          => public_path().'/upload/path/',         // path to files (REQUIRED)
            'URL'           => config('app.url').'/upload/path/', // URL to files (REQUIRED)
        ]
    ],