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

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.


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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