mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 02:31:33 -04:00
Merge pull request #28946 from nextcloud/backport/28905/stable20
[stable20] explicitly close source stream on object store upload even if count…
This commit is contained in:
commit
ff475146c7
1 changed files with 3 additions and 0 deletions
|
|
@ -493,6 +493,9 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
|||
$stat['size'] = $size;
|
||||
} else {
|
||||
$this->objectStore->writeObject($urn, $stream);
|
||||
if (is_resource($stream)) {
|
||||
fclose($stream);
|
||||
}
|
||||
}
|
||||
} catch (\Exception $ex) {
|
||||
if (!$exists) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue