Welcome Guest, Not a member yet? Register   Sign In
Allowing all file types in upload library.
#1

[eluser]Mark Skilbeck[/eluser]
I'm guessing I'm missing something here? Where is the option to allow all file types in the upload library?
#2

[eluser]xwero[/eluser]
you could include the config/mimes.php file before you load the library.
Code:
include(APPPATH.'config/mimes'.EXT);
// begin configuration
$config['allowed_types'] = implode('|',array_keys($mimes));
$config['mimes'] = $mimes; // prevents loading the mimes file for the second time

unset($mimes);
// rest of configuration

It would be nice if the mimes config file was structured like the normal config files so you could load it using load->config.




Theme © iAndrew 2016 - Forum software by © MyBB