Question Detail

How to make CodeIgniter file upload class accept all extensions?

6 years ago Views 1205 Visit Post Reply

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?


Thread Reply

Anonymous

- 6 years ago

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

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