Click Upvote Click Upvote - 1 year ago 40
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?

Answer Source

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

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