barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 171 forks source link

tmbPath isn't work with FTP driver #240

Open vietnguyen09 opened 6 years ago

vietnguyen09 commented 6 years ago

Here is my config to connect to my FTP server

'roots' => array(
    array(
        'driver' => 'FTP',
        'host'   => '10.0.0.10',
        'user'   => 'admin',
        'pass'   => '123456',
        'mode'   => 'passive',
        'path'   => '/upload/news',
        'owner'         => true,
        'tmbPath'       => 'thumbs_tmp',
        'tmbURL' => 'http://img.example.com/thumbs_tmp',
        'dirMode'       => 0755,
        'fileMode'      => 0644,
    )
),

Everything is fine, I can upload image but thumbails is not work. Here is my folder structure in FTP server.

...
 +   thumbs_tmp
 +   upload
  -- news

The connector does not create thumb in thumbs_tmp folder at FTP server, it creates thumbs folder in public directory of elfinder self host.

How can I make it work?