artgris / FileManagerBundle

FileManager is a simple Multilingual File Manager Bundle for Symfony
MIT License
171 stars 89 forks source link

Preview routing issue #99

Open Gregor2203 opened 2 years ago

Gregor2203 commented 2 years ago

Hello,

  1. Image preview is not working fmgr1

  2. There is no thumbnail previews in subfolders fmgr2

Thank you in advance for help

Martin1982 commented 2 years ago

Is the file physically available on your server and does it have the right owner and rights?

Gregor2203 commented 2 years ago

Yes. I fixed first issue by overwriting template '_list.html.twig' and add route existed in controller
data-href='{{ path('file_manager_file', fileManager.queryParameters|merge({'fileName':file.fileName})) }}' previously data-href='{{ fileEntity.preview.path }}' Now preview works in manager. But still there is no thumbnails in subfolders, and I noticed another bug(3): Clicking on file paste its filename into input and quick preview but without folders structure. The same happened in ckeditor.

xDeSwa commented 7 months ago

remove or disable 'web_dir' in config/packages/artgris_file_manager.yaml # web_dir: public

and use dir: '%kernel.project_dir%/public/uploads'

use %kernek.project_dir% on dir parameter