File Upload Class - MIME type detection error - 2.1.0 |
[eluser]CocoMansur[/eluser]
[quote author="victorche" date="1322829005"]Anyway... The guy, who made some changes in the upload class, gave me a fix for my problem. It appears on Windows machines, when sometimes mime_content_type returns false. And the fix is like this... On line 1058 (/system/libraries/Upload.php): Code: $this->file_type = @mime_content_type($file['tmp_name']); Code: $this->file_type = @mime_content_type($file['tmp_name']); Edit: This is the fix, with the pull request on GitHub from my friend: https://github.com/EllisLab/CodeIgniter/pull/733[/quote] Thanks for this fix, this worked for me, i applied the first fix but i was still having problem when uploading a file that is allowed on my config. I applied the first fix with this fix and now it works. Thanks. hopefully they will fix this issue on the next version. |
Welcome Guest, Not a member yet? Register Sign In |