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,
'timeTaken' => getTimeTaken()
));
} else {
die();
}
returnJson(array(
'status' => 'ERROR',
'url' => 'Failed to save file. Check the permissions of the upload directory.',
'timeTaken' => getTimeTaken()
));
}
die();
}
returnJson(array(
'status' => 'OK',
'url' => 'File uploaded successfully',
'url' => $finalName,
'timeTaken' => getTimeTaken()
));
die();