barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 169 forks source link

Image Thumbnail in Laravel-elfinder #97

Open tskkh opened 8 years ago

tskkh commented 8 years ago

Hello all, I'm getting problem with the image thumbnail in laravel-elfinder integrate with CKeditor. It doesn't display the image thumbnail within the file browser display.

Anyone experienced with this please share me the solution.

screenshot

janokary commented 8 years ago

I have the same problem.

barryvdh commented 8 years ago

Does it try to load an image somewhere? (See js console)

tskkh commented 8 years ago

@barryvdh Yes, upload image from outside project.

maharjanmilan commented 8 years ago

@barryvdh yes, its loading the thumbnail from the correct path ( it looks inside .tmb folder) but the thumbnails arent generated.

barryvdh commented 8 years ago

It could be that your Apache config is block folders/files starting with dots (try different folder name or change your htaccess file) It could also be that the permissions are not correct.

maharjanmilan commented 8 years ago

I tried a different folder, but it still fails to generate thumbnails. Is there something I have to do to generate the thumbnails in the tmb folder?

maharjanmilan commented 8 years ago

The problem was, tmbURL wasn't set correctly. It's working perfectly now. :)

cesarsicas commented 8 years ago

@mln-mln-mln Where and how can i config the tmbURL ? Should be in config/elfinder.php ?

nhtua commented 8 years ago

@tskkh try setting the upload directory endpoint in both of path and URL are the same. In my case, I use the dir has name "upload".

Change roots in config/elfinder.php

'roots' => array(
        array(
            'driver' => 'LocalFileSystem',
            'path'   =>  __DIR__.'/../public_html/upload', 
            'URL'    =>  '/upload', // <-- That dir should be same as above, in path
            'attributes' => array(
                array( 
                    'pattern' => '/\/\./',
                    'read' => false,
                    'write' => false,
                    'locked' => true,
                    'hidden' => true
                )
            )
        )
    ),
ShekharKokate commented 3 years ago

I have used type as browse. I am able to select the image but not able to upload. Please help

ojha007 commented 3 years ago

i used aws how to show preview image and add pagination

ShekharKokate commented 3 years ago

Can you please suggest, how to use pagination in elfinder? I am getting issue to load all the images in elfinder. As the images are uploaded on amazon s3 and it is taking time to load all the images. If there will be any solution, please suggest.