change message
This commit is contained in:
parent
47256117d1
commit
78b3941c80
@ -93,12 +93,12 @@ try {
|
|||||||
returnJson('OK', $finalName, $timeTaken);
|
returnJson('OK', $finalName, $timeTaken);
|
||||||
} else {
|
} else {
|
||||||
$timeTaken = microtime(true) - $before;
|
$timeTaken = microtime(true) - $before;
|
||||||
returnJson('ERROR', 'File upload failed. Does the folder exist and did you CHMOD the folder?', $timeTaken);
|
returnJson('ERROR', 'File upload failed. Does the upload folder exist and did you CHMOD the folder?', $timeTaken);
|
||||||
}
|
}
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
returnJson('OK', $finalName, $timeTaken);
|
returnJson('OK', $finalName, $timeTaken);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) { // Handle any errors
|
||||||
$timeTaken = microtime(true) - $before;
|
$timeTaken = microtime(true) - $before;
|
||||||
returnJson('ERROR', $e->getMessage(), $timeTaken);
|
returnJson('ERROR', $e->getMessage(), $timeTaken);
|
||||||
die();
|
die();
|
||||||
|
Loading…
Reference in New Issue
Block a user