Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add a setting for thumbnail URL? or is my route config wrong? #49

Open
con322 opened this issue Dec 28, 2015 · 1 comment
Open

Comments

@con322
Copy link

con322 commented Dec 28, 2015

I have the following route setup in my backend config:

        'routes' => [
            // Base absolute path to web directory
            'baseUrl' => '',
            // Base web directory url
            'basePath' => '@frontend',
            // Path for uploaded files in web directory
            'uploadPath' => 'uploads',
        ],

The files are uploaded to the correct directory however once uploaded the following message is displayed:

{"files":[{"url":"/uploads/2015/12/test.jpg","thumbnailUrl":"/backend/uploads/2015/12/test-128x128.jpg","name":"test.jpg","type":"image/jpeg","size":9713,"deleteUrl":"/backend/filemanager/file/delete?id=2","deleteType":"POST"}]}

As you can see the thumbnail URL has backend at the beginning which isn't necessary.

@fabiomlferreira
Copy link
Contributor

I have fixed this bug that was introduced by a pull request that @PendalF89 accepted.
In the last version this error should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants