mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #28905 from nextcloud/backport/26832/stable21
[stable21] explicitly close source stream on object store upload even if count…
This commit is contained in:
commit
ea39319d2e
1 changed files with 3 additions and 0 deletions
|
|
@ -494,6 +494,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