Click Upvote Click Upvote - 2 months ago 8x
PHP Question

How to make CodeIgniter file upload class accept all extensions?

Currently if I supply no extensions to the class it allows no extensions. I would like to allow all extensions. Is there any way to do this without hacking the core?


In Codeigniter 2, you simply need to define allowed types like this :

$config['allowed_types'] = '*';