Upload class - allowed filetype issue |
[eluser]Zeff[/eluser]
Hi all, I made a simple upload form for upload rtf files to a congress website: Code: // Set upload config But uploading doesn't work, I get the following error out of the var_export($data): Code: The filetype you are attempting to upload is not allowed When I change allowed filetypes like this: Code: $config['allowed_types'] = '*'; the upload works... (So path and permissions of upload directory are correct) What goes wrong? Thanks in advance for the help! Zeff
[eluser]Zeff[/eluser]
BTW, some further debugging reveals that the RTF uploaded file has a 'file_type' => 'application/msword', but when I look in config > mimes file, I see 'rtf' => 'text/rtf' as existing mime... The $mime var in line 620 return no array but FALSE...
[eluser]Zeff[/eluser]
Found the solution! Problems with mime type detection have been fixed: I downloaded the most recent Upload library from Github (https://github.com/EllisLab/CodeIgniter/...Upload.php) and the problem was solved! I love this Framework! |
Welcome Guest, Not a member yet? Register Sign In |