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

Preview routing issue #99

Open
Gregor2203 opened this issue Feb 14, 2022 · 3 comments
Open

Preview routing issue #99

Gregor2203 opened this issue Feb 14, 2022 · 3 comments

Comments

@Gregor2203
Copy link

Hello,

  1. Image preview is not working
    fmgr1

  2. There is no thumbnail previews in subfolders
    fmgr2

Thank you in advance for help

@Martin1982
Copy link
Contributor

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

@Gregor2203
Copy link
Author

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
Copy link
Contributor

xDeSwa commented Nov 24, 2023

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

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

3 participants