part 2 of below
This commit is contained in:
parent
2c1c9e025c
commit
db654595fb
14
upload.php
14
upload.php
@ -118,18 +118,18 @@ try {
|
||||
'url' => $finalName,
|
||||
'timeTaken' => getTimeTaken()
|
||||
));
|
||||
} else {
|
||||
returnJson(array(
|
||||
'status' => 'ERROR',
|
||||
'url' => 'Failed to save file. Check the permissions of the upload directory.',
|
||||
'timeTaken' => getTimeTaken()
|
||||
));
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user