mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
use our own stream copy instead
This commit is contained in:
parent
cbcee34eb0
commit
dcfe014103
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class File extends Node implements IFile {
|
|||
// because we have no clue about the cause we can only throw back a 500/Internal Server Error
|
||||
throw new Exception('Could not write file contents');
|
||||
}
|
||||
$count = stream_copy_to_stream($data, $target);
|
||||
list($count, ) = \OC_Helper::streamCopy($data, $target);
|
||||
fclose($target);
|
||||
|
||||
// if content length is sent by client:
|
||||
|
|
|
|||
Loading…
Reference in a new issue