Skip to content

Commit

Permalink
fixed saveMedia function missing required parameter for uploadWeb
Browse files Browse the repository at this point in the history
  • Loading branch information
SrS2225a authored Jan 24, 2025
1 parent e910f7e commit 5fc3a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function uploadWeb(Request $request, Response $response): Response
}

try {
$response = $this->saveMedia($response, $file, $user);
$response = $this->saveMedia($response, $file, $user, param($request, 'code'));
$this->setSessionQuotaInfo($user->current_disk_quota + $file->getSize(), $user->max_disk_quota);
} catch (Exception $e) {
$this->updateUserQuota($request, $user->id, $file->getSize(), true);
Expand Down

0 comments on commit 5fc3a3f

Please sign in to comment.