Click Upvote Click Upvote - 4 months ago 14
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

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

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