![]() |
Upload library class BUG - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Upload library class BUG (/showthread.php?tid=46976) |
Upload library class BUG - El Forum - 11-22-2011 [eluser]paulipv[/eluser] We tested the upload class and seems is not working correct. When we set allowed file types is NOT working. The library seems that not set the file_type Here is the problem i think. Code: // Fall back to the deprecated mime_content_type(), if available I replaced: $this->file_type = mime_content_type($file['tmp_name']); With: $this->file_type = $file['type']; and working. Any fixes? |