CodeIgniter Forums

Full Version: Upload library PDF allowed_types error workaround
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Jay Turley[/eluser]
(Running Apache on Windows, CI 1.7.1)

I ran into the "can't upload PDFs" problem which seems to be quite popular, and after looking at the bug tracker report for the PDF bug I determined that the POST data was sending:

Content-Type: application/download

So I opened up config/mimes.php and changed the line

Code:
'pdf' => array('application/pdf', 'application/x-download'),

to
Code:
'pdf' => array('application/pdf', 'application/x-download', 'application/download'),

That solved the problem. Just want to post it here for reference and in case anyone else is searching the forums.

Oh, and it was easy to see the post data using HTTPFox