laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

Filamanager only display File folder

Open KatiaSishost opened this issue 2 years ago • 1 comments

Hello when i ingress to domain.com/filemanager

appear in the left side...

Files and Shared Folder... not appear the Image Folder.

but when i enter to domain.com/filemanager?type=image

appear in the left side...

Files and Shared Folder... not appear the Image Folder. too..

but the content it's correct...


'allow_private_folder'     => true,

    // Flexible way to customize client folders accessibility
    // If you want to customize client folders, publish tag="lfm_handler"
    // Then you can rewrite userField function in App\Handler\ConfigHandler class
    // And set 'user_field' to App\Handler\ConfigHandler::class
    // Ex: The private folder of user will be named as the user id.
    'private_folder_name'      => UniSharp\LaravelFilemanager\Handlers\ConfigHandler::class,

    'allow_shared_folder'      => true,

    'shared_folder_name'       => 'shares',


'folder_categories'        => [
        'file'  => [
            'folder_name'  => 'files',
            'startup_view' => 'list',
            'max_size'     => 50000, // size in KB
            'thumb' => true,
            'thumb_width' => 80,
            'thumb_height' => 80,
            'valid_mime'   => [
                'image/jpeg',
                'image/pjpeg',
                'image/png',
                'image/gif',
                'application/pdf',
                'text/plain',
            ],
        ],
        'image' => [
            'folder_name'  => 'images',
            'startup_view' => 'grid',
            'max_size'     => 50000, // size in KB
            'thumb' => true,
            'thumb_width' => 80,
            'thumb_height' => 80,
            'valid_mime'   => [
                'image/jpeg',
                'image/pjpeg',
                'image/png',
                'image/gif',
            ],
        ],
    ],

KatiaSishost avatar May 19 '22 14:05 KatiaSishost

Hi @KatiaSishost

I solved it as follows by changing the /vendor/laravel-filemanager/js/stand-alone-button.js file

Line 10

In window.open(route_prefix + '?type=' + type, 'FileManager', 'width=900,height=600');

for window.open(route_prefix, 'FileManager', 'width=900,height=600');

So it opens all files and folders and when it adds it shows in the files.

I don't know if that's what you want, it works fine for me.

ayrongabriel avatar May 23 '22 17:05 ayrongabriel