Crud: elfinder image URL not absolute path, some token based path

Created on 30 Nov 2017  路  3Comments  路  Source: Laravel-Backpack/CRUD

Bug report

What I did:

Clicked on WYSIWIG to add image in text

What I expected to happen:

Add image with correct url to the image (https://acoolsite.nyc3.digitaloceanspaces.com/posts/10578_432266693547706_1658074314_n.jpg)

What happened:

Get some funky url that will only work if user is signed in. It needs to be the absolute path to the image. (http://acoolsite.dev/admin/elfinder/connector?_token=uTw17WEtWI4oZM8fvAHK6riPs8mwIEquK0zt1Kzd&cmd=file&target=fls2_cG9zdHMvMTI3MTEzMDhfMTAxNTI5NjM2NTI3ODI4MjRfNjcxMTM1ODEzMjMzMTIzNjExOF9vLmpwZw)

What I've already tried to fix it:

Config the elFinder and ask on StackOverflow

Backpack, Laravel, PHP, DB version:

Laravel 5.5 | Backpack ^3.2

Bug

Most helpful comment

To fix this I had to add a URL to my disk in Elfinder.php

'disks' => [
        'spaces' => [
            'URL' => url('https://mydomain.nyc3.digitaloceanspaces.com'),
        ],
    ],

All 3 comments

To fix this I had to add a URL to my disk in Elfinder.php

'disks' => [
        'spaces' => [
            'URL' => url('https://mydomain.nyc3.digitaloceanspaces.com'),
        ],
    ],

The above appears to be a valid solution; closing.

The solution proposed by @packytagliaferro works fine

Was this page helpful?
0 / 5 - 0 ratings