Skip to content

Commit

Permalink
Merge pull request #533 from cursey/feature/upload-response-raw-url
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed May 31, 2023
2 parents c7a6dd1 + d3fde3e commit 0951638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 0951638

Please sign in to comment.