diff --git a/src/controllers/UploadController.php b/src/controllers/UploadController.php index 18b0a88c..bfd62a8e 100644 --- a/src/controllers/UploadController.php +++ b/src/controllers/UploadController.php @@ -189,12 +189,12 @@ private function useFile($new_filename) { $file = parent::getFileUrl($new_filename); - $responseType=request()->input('responseType'); - if ($responseType && $responseType=='json') { + $responseType = request()->input('responseType'); + if ($responseType && $responseType == 'json') { return [ - "uploaded"=> 1, - "fileName"=> $new_filename, - "url"=> $file, + "uploaded" => 1, + "fileName" => $new_filename, + "url" => $file, ]; }