part 2 of below

This commit is contained in:
Lee 2023-04-09 17:40:37 +01:00
parent 2c1c9e025c
commit db654595fb

@ -118,18 +118,18 @@ try {
'url' => $finalName, 'url' => $finalName,
'timeTaken' => getTimeTaken() 'timeTaken' => getTimeTaken()
)); ));
} else { die();
returnJson(array(
'status' => 'ERROR',
'url' => 'Failed to save file. Check the permissions of the upload directory.',
'timeTaken' => getTimeTaken()
));
} }
returnJson(array(
'status' => 'ERROR',
'url' => 'Failed to save file. Check the permissions of the upload directory.',
'timeTaken' => getTimeTaken()
));
die(); die();
} }
returnJson(array( returnJson(array(
'status' => 'OK', 'status' => 'OK',
'url' => 'File uploaded successfully', 'url' => $finalName,
'timeTaken' => getTimeTaken() 'timeTaken' => getTimeTaken()
)); ));
die(); die();