Merge pull request #533 from cursey/feature/upload-response-raw-url
This commit is contained in:
commit
0951638dc8
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