Upload: Response now includes raw_url as well

This commit is contained in:
cursey 2023-05-29 21:57:55 -07:00
parent c7a6dd1c16
commit d3fde3e298
No known key found for this signature in database
GPG key ID: A6A7163A1B8FD42C

View file

@ -208,6 +208,7 @@ class UploadController extends Controller
$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]);