Commit 0a5c6670 by Trần Văn Minh

cập nhật đuôi ảnh jpeg

parent 1d13a904
...@@ -113,7 +113,7 @@ class CmsTrack extends CI_Controller ...@@ -113,7 +113,7 @@ class CmsTrack extends CI_Controller
$upload_full_path = '/home/aseanvn/public_html/vmusicchart.dcv.vn/' . $upload_path; $upload_full_path = '/home/aseanvn/public_html/vmusicchart.dcv.vn/' . $upload_path;
$config['upload_path'] = $upload_full_path; $config['upload_path'] = $upload_full_path;
$config['file_name'] = md5($track_id.time()); $config['file_name'] = md5($track_id.time());
$config['allowed_types'] = 'gif|jpg|png|jpge'; $config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['max_size'] = 20480; $config['max_size'] = 20480;
$config['max_width'] = 1024; $config['max_width'] = 1024;
$config['max_height'] = 768; $config['max_height'] = 768;
...@@ -199,7 +199,7 @@ class CmsTrack extends CI_Controller ...@@ -199,7 +199,7 @@ class CmsTrack extends CI_Controller
$upload_full_path = '/home/aseanvn/public_html/vmusicchart.dcv.vn/' . $upload_path; $upload_full_path = '/home/aseanvn/public_html/vmusicchart.dcv.vn/' . $upload_path;
$config['upload_path'] = $upload_full_path; $config['upload_path'] = $upload_full_path;
$config['file_name'] = md5($insert_id.time()); $config['file_name'] = md5($insert_id.time());
$config['allowed_types'] = 'gif|jpg|png|jpge'; $config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['max_size'] = 20480; $config['max_size'] = 20480;
$config['max_width'] = 1024; $config['max_width'] = 1024;
$config['max_height'] = 768; $config['max_height'] = 768;
...@@ -252,6 +252,7 @@ class CmsTrack extends CI_Controller ...@@ -252,6 +252,7 @@ class CmsTrack extends CI_Controller
return TRUE; return TRUE;
} }
} }
public function check_default($value) public function check_default($value)
{ {
if ($value == '0') { if ($value == '0') {
......
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