semplon / summernote-ext-elfinder

Summernote Plugin for elFinder File Manager
MIT License
24 stars 21 forks source link

Upload broken due to laravel CSRF #7

Open codewise-nicolas opened 2 years ago

codewise-nicolas commented 2 years ago

For anyone still trying to use this code with newer laravel you will find upload fails with 419 error due to missing CSRF token. Add this to your dialogelfinder()

customData: { 
                    _token: '<?php echo  csrf_token() ?>'
                },

Copy over from Stackoverflow solution for ckeditor