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

#3
[eluser]Patche[/eluser]
Hi,

Yep I'm aware of that. In fact, I realised that $_FILES['userfile']['type'] is set by the browser so it's not to be trusted.

However, I'm still unsure as to why the file has the application/octet-stream when it's a PDF file (I can open it in Adobe). I resaved the file as PDF and that did come up as application/pdf. Not sure how to get around this error.


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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