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