Upload: Response now includes raw_url as well
This commit is contained in:
parent
c7a6dd1c16
commit
d3fde3e298
1 changed files with 1 additions and 0 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue