use our own stream copy instead
This commit is contained in:
parent
cbcee34eb0
commit
dcfe014103
|
@ -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 New Issue