• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$_FILES['userfile']['type'] Mime type different than the $this->upload->data() mine type?

#4
[eluser]CroNiX[/eluser]
You can try to update your mimes.php file with the one from CI3 on github. https://github.com/EllisLab/CodeIgniter/.../mimes.php

It has a different definition for pdf than 2.2:
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),

As far as why it gets binary/octet-stream, it could be whatever program/library is creating the pdf. also some browsers have had issues setting the correct mime type.

You could try to upload from a different browser to see if it changes, and also try using PDFs from a variety of different sources.



Messages In This Thread
$_FILES['userfile']['type'] Mime type different than the $this->upload->data() mine type? - by El Forum - 08-12-2014, 11:53 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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