FileManagerBundle icon indicating copy to clipboard operation
FileManagerBundle copied to clipboard

Bug With File Path and Feature Requests

Open lahmacun opened this issue 1 year ago • 1 comments

Hi there!

First of all, I'm in a hurry, I have no time to write details of the feature and bug. I'll shortly explain and edit the issue later. And if I have time, I really want to open a PR for these requests. I appreciate your work here.

Bug With File Path:

My file manager is under dashboard/file-manager path and /dashboard path is accessible only with ROLE_USER. But I want to serve that files over their real path which is /upload/blablabla

Since the data-path attribute on .select item giving me the path like this: '/dashboard/file-manager/file/blabla.png?route=blabla', I can not serve that images to my anon users.

Feature Request

I wanted to add a variable to the prefix in routes.yaml, something like that: '/dashboard/apps/{eventId}/file-manager', thus I could open the right folder when user wants to add image to specific event. But I can not accomplish that right now.

Also if I can select an initial folder, it would work for me too. I'm using custom service. Maybe an option like 'initialFolder' can be added. So I can rewrite this on custom service and when I open the file manager, I can show user the right directory.

lahmacun avatar Sep 19 '24 20:09 lahmacun

Hi, test this https://packagist.org/packages/ethsam/filemanagerbundlefixsymfonyfckeditor

And read -> https://github.com/artgris/FileManagerBundle/issues/147

ethsam avatar Dec 17 '24 10:12 ethsam