diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 7f00b0e7c0..e344396fc8 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -2090,7 +2090,7 @@ class Vfs extends Vfs\StreamWrapper } if (is_resource($tmp_name)) { - $ret = ($dest = egw_vfs::fopen($target, 'w')) && + $ret = ($dest = self::fopen($target, 'w')) && stream_copy_to_stream($tmp_name, $dest) !== false && fclose($dest) && self::stat($target);