From de30b148e13b202bf6bf2bb8a73af3b6eddcc776 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 522d542e43..1d0bc12121 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -517,7 +517,7 @@ public function putFile($fileId, $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 {