Skip to content

Commit

Permalink
fix psr2
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Dec 5, 2017
1 parent caa3ab0 commit 40ff560
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}

Expand Down

0 comments on commit 40ff560

Please sign in to comment.