From f70b461871b8f4a2c731769fd50c227af383d197 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 e7121264f2..00bc1d3e23 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -493,7 +493,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 {