FIX_UPLOAD_ERROR
This commit is contained in:
parent
96c825197b
commit
9f7be7e8e5
@ -803,12 +803,9 @@ class EmployeeRestController extends AdminController
|
||||
{
|
||||
if(isset($result['error_type'])){
|
||||
$result = $empServiceController->getExcelErrorData($file_id);
|
||||
return $this->respond(['status' => 'failed', 'code' => 404, 'message' => "file upload failed with errors",'data' => $result], 200);
|
||||
return $this->respond(['status' => 'failed', 'code' => 404, 'message' => 'The data format is invalid. Click "Next" to view details.','data' => $result], 200);
|
||||
}else {
|
||||
$message = "file upload failed with errors";
|
||||
if(isset($result['error_data'])){
|
||||
$message = $result['error_data'];
|
||||
}
|
||||
$message = "The import file is in an incorrect format. Please compare it with our template file to correct it.";
|
||||
return $this->respond(['status' => 'failed', 'code' => 404, 'message' => $message,'data' => $result], 200);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user