简体   繁体   中英

Laravel 5.3 file manager unable to upload image in CK editor

I am try to integrate CK editor in my laravel 5.3 project. It is working fine. But when I integrate file manager with it the 'Browse Server' is there but when I click there in the pop up the home page is showing.

CK编辑器文件浏览图片

After spend some time I found this is the problem of auth in laravel. The 'Auth' didn't allow the URL.

In my project I am using Clusterpoint as the DB. It is a remote database. I am not using the auth function in my project and for this I think I am facing this problem. Any body can have any solution for how to overcome from this problem?

The code which I have the problem,

<textarea class="ckeditor" name="editor" id="my-editor"></textarea>
            <script>
              CKEDITOR.replace( 'my-editor', {
                filebrowserImageBrowseUrl: '/laravel-filemanager?type=Images',
                filebrowserImageUploadUrl: '/laravel-filemanager/upload?type=Images&_token={{csrf_token()}}',
                filebrowserBrowseUrl: '/laravel-filemanager?type=Files',
                filebrowserUploadUrl: '/laravel-filemanager/upload?type=Files&_token={{csrf_token()}}'
              });
            </script>

由于不需要使用laravel-filemanager的auth ,因此只需从config/lfm.php middlewares删除auth

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM