[eluser]Unknown[/eluser]
Hi,
I just checked the upload of pdf with your mime config and it seems to work on my side...
I had the same problem to upload pdf file using the file upload class demonstrated in the user guide of code igniter.
At first it didn't want to upload my pdf with the following settings:
--> $config['allowed_types'] = 'png|jpg|doc|csv|psd|gif|pdf';
Then if you have a close look at the function "do_upload" in the upload.php, you'll find when your pdf file is rejected for "invalid type" issue.
It is actually in the function "is_allowed_filetype" in upload.php. The algorithm is kind of reverse inside if can say that.
So accordingly to the algo of "is_allowed_filetype" function, you just need to change the position of your pdf in the config array, you'll end up with something like this:
--> $config['allowed_types'] = 'pdf|png|jpg|doc|csv|psd|gif';
And this worked actually alright for me regardless the mime type config.
It's true it's a bit messy i agree, i just hope that code igniter either clears this up or comes up with a fix...
Hope it might helps ;-)