1
0
Fork 0

Fix a bug where the wrong file name was saved as the original name.

This commit is contained in:
Andrew Tomaka 2011-11-05 15:57:25 -04:00
parent c642fcf81d
commit 035ed81542

View file

@ -22,7 +22,7 @@ class Upload extends CI_Controller {
$upload = $this->upload->data();
$this->load->model('fileupload');
$file_name = $this->fileupload->add_upload($upload['file_ext'], $upload['orig_name']);
$file_name = $this->fileupload->add_upload($upload['file_ext'], $upload['client_name']);
rename($upload['full_path'], $upload['file_path'] . $file_name . $upload['file_ext']);