explicitly close source stream on upload without part file
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
a3fb7914c5
commit
edbda8411c
|
@ -224,6 +224,7 @@ class File extends Node implements IFile {
|
|||
}
|
||||
list($count, $result) = \OC_Helper::streamCopy($data, $target);
|
||||
fclose($target);
|
||||
fclose($data);
|
||||
}
|
||||
|
||||
if ($result === false) {
|
||||
|
|
Loading…
Reference in New Issue