use our own stream copy instead

This commit is contained in:
Robin Appelman 2015-04-13 14:13:21 +02:00
parent cbcee34eb0
commit dcfe014103
1 changed files with 1 additions and 1 deletions

View File

@ -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: