Fixed JSON request not working.
This commit is contained in:
parent
6d50c7336a
commit
58200757d7
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ class UploadsRoutes implements RouteHandler {
|
|||
|
||||
$isOriginal = $uploadVariant === '';
|
||||
$isJson = $this->isApiDomain && $uploadVariant === 'json';
|
||||
if($isJson)
|
||||
$uploadVariant = '';
|
||||
|
||||
if(strlen($uploadId) === 32) {
|
||||
$uploadId = $this->uploadsCtx->uploads->resolveLegacyId($uploadId) ?? $uploadId;
|
||||
|
|
Loading…
Reference in a new issue