Commit 7ed98619 by Phạm Văn Đoan

test upload

parent 500ea1fa
...@@ -413,7 +413,7 @@ class CmsTrack extends CI_Controller ...@@ -413,7 +413,7 @@ class CmsTrack extends CI_Controller
redirect(base_url('backend/cmsTrack/showTrack/'.$track_id)); redirect(base_url('backend/cmsTrack/showTrack/'.$track_id));
} }
$update = $this->privateUpdateTrackArt($track_id, 'track_image', false); $update = $this->privateUpdateTrackArt($track_id, 'track_image', true);
if ($update) { if ($update) {
$this->session->set_flashdata('success', 'Cập nhật ảnh bài hát thành công'); $this->session->set_flashdata('success', 'Cập nhật ảnh bài hát thành công');
...@@ -541,6 +541,8 @@ class CmsTrack extends CI_Controller ...@@ -541,6 +541,8 @@ class CmsTrack extends CI_Controller
$this->track_model->update_art($track_id, $db_art_path); $this->track_model->update_art($track_id, $db_art_path);
return true; return true;
} else {
MyHelper::echoPreDie($this->upload->display_errors());
} }
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment