From 0b2ac1457707755bdd68d7897af11b47c1c304a7 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Wed, 27 Nov 2024 13:07:12 -0500 Subject: [PATCH] fix: use storage free space Signed-off-by: Elizabeth Danzberger --- lib/Controller/WopiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index de42fbc648..278bb0cf8c 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -444,7 +444,7 @@ public function putFile(string $fileId, string $access_token): JSONResponse { $content = fopen('php://input', 'rb'); - $freespace = $file->getParent()->getFreeSpace(); + $freespace = (int)$file->getStorage()->free_space($file->getInternalPath()); $contentLength = (int)$this->request->getHeader('Content-Length'); try {