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

[eluser]InsiteFX[/eluser]
You can check it the way you are now just ignore the application/octet-stream.

Otherwise you will need to send an header for the file type.

Pure php file upload

Shows how to check for the file type on upload.
#12

[eluser]Patche[/eluser]
Hi,

Thanks for your reply.

That link shows that it's checking the file type using the $_FILES[]['type'] array- which is set by the browser and can be spoofed by the user right? And didn't you just say not to check the mime type when uploading files?

Sorry for all the questions, just slightly confused Smile




Theme © iAndrew 2016 - Forum software by © MyBB