diff options
Diffstat (limited to 'apps/files_external/lib/Lib/Storage/SFTP.php')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SFTP.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index 1caebf8a9d6..5d83bf253e4 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -378,6 +378,9 @@ class SFTP extends \OC\Files\Storage\Common { return RetryWrapper::wrap($handle); case 'w': case 'wb': + SFTPWriteStream::register(); + $context = stream_context_create(['sftp' => ['session' => $this->getConnection()]]); + return fopen('sftpwrite://' . trim($absPath, '/'), 'w', false, $context); case 'a': case 'ab': case 'r+': |