diff --git a/app/Controllers/UploadController.php b/app/Controllers/UploadController.php index bff052fd..f2ecee96 100644 --- a/app/Controllers/UploadController.php +++ b/app/Controllers/UploadController.php @@ -208,6 +208,7 @@ protected function saveMedia(Response $response, UploadedFileInterface $file, $u $this->json['message'] = 'OK'; $this->json['url'] = urlFor("/{$user->user_code}/{$code}.{$fileInfo['extension']}"); + $this->json['raw_url'] = urlFor("/{$user->user_code}/{$code}/raw.{$fileInfo['extension']}"); $this->logger->info("User $user->username uploaded new media.", [$mediaId]);