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,
|
'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();
|
||||||
|
Loading…
Reference in New Issue
Block a user