FileManagerBundle icon indicating copy to clipboard operation
FileManagerBundle copied to clipboard

Preview routing issue

Open Gregor2203 opened this issue 3 years ago • 3 comments

Hello,

  1. Image preview is not working fmgr1

  2. There is no thumbnail previews in subfolders fmgr2

Thank you in advance for help

Gregor2203 avatar Feb 14 '22 09:02 Gregor2203

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

Martin1982 avatar Feb 15 '22 08:02 Martin1982

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.

Gregor2203 avatar Feb 15 '22 21:02 Gregor2203

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

xDeSwa avatar Nov 24 '23 15:11 xDeSwa