Welcome Guest, Not a member yet? Register   Sign In
$_FILES['userfile']['type'] Mime type different than the $this->upload->data() mine type?
#1

[eluser]Patche[/eluser]
Hi guys,

When running an upload of a file, it will fail because the mime type is not correct. For example, if I upload a PDF file (even though the file is listed as accepted type), it will fail because it thinks the mime type is

[file_type] => application/octet-stream

But when I check the $_FILES['userfile']['type'] variable, it outputs the correct mime type:

application/pdf

So I'm not sure what is causing this bug. I've checked the file on mime checker sites and they all output application/pdf. Does anyone know what could be causing the difference?


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



Theme © iAndrew 2016 - Forum software by © MyBB