Merge pull request #26832 from nextcloud/object-close-stream-non-count
explicitly close source stream on object store upload even if count…
This commit is contained in:
commit
b900d64fd4
|
@ -493,6 +493,9 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
||||||
$stat['size'] = $size;
|
$stat['size'] = $size;
|
||||||
} else {
|
} else {
|
||||||
$this->objectStore->writeObject($urn, $stream, $mimetype);
|
$this->objectStore->writeObject($urn, $stream, $mimetype);
|
||||||
|
if (is_resource($stream)) {
|
||||||
|
fclose($stream);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
if (!$exists) {
|
if (!$exists) {
|
||||||
|
|
Loading…
Reference in New Issue