79369559

Date: 2025-01-19 18:52:39
Score: 1
Natty:
Report link

Replace Your Code in Model `save()` Function

if($this->upload->do_upload('img')){
  // Get data about the file
  $uploadData = $this->upload->data();
  $file_name = $uploadData['file_name'];
  $data['response'] = 'successfully uploaded '.$file_name;
}else{
  $data['response'] = 'failed';
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sawan Shakya