Merge pull request #4691 from chestnutprog/develop
[ci skip] Fix a bug in CI_Upload::data()
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index fa36505..7b94a23 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -601,7 +601,7 @@
'file_type' => $this->file_type,
'file_path' => $this->upload_path,
'full_path' => $this->upload_path.$this->file_name,
- 'raw_name' => str_replace($this->file_ext, '', $this->file_name),
+ 'raw_name' => substr($this->file_name, 0, strlen($this->file_name) - strlen($this->file_ext)),
'orig_name' => $this->orig_name,
'client_name' => $this->client_name,
'file_ext' => $this->file_ext,