Closed gsofficework closed 6 months ago
I have the following code to connect SFTP for each file upload using Laravel.
$driver = Storage::createSFtpDriver([ 'driver' => 'sftp', 'host' => 'sftp.test.com', 'username' => 'test-gopal@sftp.test.com', 'password' => '123456', 'timeout' => 60, ]); $driver->put($destinationPath, file_get_contents($localPath));
Please help me to find a way to disconnect the SFTP connection once the files are uploaded.
TIA
Same problem here !
I remember in the past we could force disconnect manually Actually there is no more any public disconnect function
Recently, a disconnect method is added to the SFTP adapter.
disconnect
I need help disconnecting the SFTP connection once the files are uploaded successfully.
I have the following code to connect SFTP for each file upload using Laravel.
Please help me to find a way to disconnect the SFTP connection once the files are uploaded.
TIA