Set the mime type check in the Upload class to reference the global mimes variable.
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 1225ee3..23e52e4 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -821,9 +821,11 @@
*/
function mimes_types($mime)
{
+ global $mimes;
+
if (count($this->mimes) == 0)
{
- if (@include(APPPATH.'config/mimes'.EXT))
+ if (@require_once(APPPATH.'config/mimes'.EXT))
{
$this->mimes = $mimes;
unset($mimes);
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 8217cbf..28eb39d 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -66,6 +66,11 @@
<li>Added ability to set additional database config values in <a href="database/connecting.html">DSN connections</a> via the query string.</li>
</ul>
</li>
+ <li>Libraries
+ <ul>
+ <li>Set the mime type check in the <a href="libraries/file_uploading.html">Upload class</a> to reference the global mimes variable.</li>
+ </ul>
+ </li>
</ul>