Skip to content

Commit

Permalink
fix: use storage free space
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Nov 27, 2024
1 parent 108a1cc commit 0b2ac14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0b2ac14

Please sign in to comment.