• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload library PDF allowed_types error workaround

[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

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

'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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.