Skip to content

Commit

Permalink
Merge pull request #4303 from nextcloud/backport/4301/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: get storage from file instead of parent
  • Loading branch information
elzody authored Dec 3, 2024
2 parents c627dc0 + f70b461 commit 107acd1
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 @@ -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 {
Expand Down

0 comments on commit 107acd1

Please sign in to comment.