Added : Error log when uploading file
This commit is contained in:
parent
363e2757fc
commit
c4fda73db8
1 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,9 @@ switch ($mode) {
|
||||||
|
|
||||||
$vid = $Upload->submit_upload($vidDetails);
|
$vid = $Upload->submit_upload($vidDetails);
|
||||||
|
|
||||||
|
if(error()){
|
||||||
|
echo json_ecode(array('err'=>error()));
|
||||||
|
}else
|
||||||
echo json_encode(array('success' => 'yes',
|
echo json_encode(array('success' => 'yes',
|
||||||
'vid' => $vid,'file_directory'=>$file_directory,
|
'vid' => $vid,'file_directory'=>$file_directory,
|
||||||
'file_name'=>$file_name));
|
'file_name'=>$file_name));
|
||||||
|
|
Loading…
Add table
Reference in a new issue