Ad

Laravel FTPES Connection

- 1 answer

I have to connect to ftp server through ftpes protocol in Laravel 8 (PHP 8.0). I made configuration like:

'ftpes' => [
    'driver'   => 'ftp',
    'host'     => 'ftpes://ftp.page.com',
    'username' => 'login',
    'password' => 'password',
    'port'     => 21,
    'passive'  => true,
    'ssl'      => true,
]

But everytime I try to connect to this server i got error: Could not connect to host: ftpes://ftp.page.com, port:21

With FileZilla I can connect there without any errors.

Edit: Removed ftpes:// and added 'ignorePassiveAddress' => true to filesystem config and it is working now

Ad

Answer

The ftpes:// is not a part of the hostname, drop it.

Ad
source: stackoverflow.com
Ad