Welcome Guest, Not a member yet? Register   Sign In
$config['file_name'] malfunction
#1

[eluser]Maglok[/eluser]
I've worked with the upload class before.

I have some code, where it uploads just fine. Due to the nature of the image though, I want the name to be the username (which is unique).

Thus I tried to use $config['file_name'] = $username

This doesn't seem to do anything. Some searching on the forum gave me a few threads where the problem was never really anwsered.

My config:

Code:
$config['upload_path'] = base_url() . 'uploads/';
        $config['allowed_types'] = 'gif|jpg|png';
        $config['max_size']    = '100';
        $config['max_width']  = '1000';
        $config['max_height']  = '1000';
        $config['file_name'] = $medewerker->solisid;

I have also figgled a bit with the $config['overwrite'], to no avail.


Messages In This Thread
$config['file_name'] malfunction - by El Forum - 07-22-2010, 07:08 AM
$config['file_name'] malfunction - by El Forum - 07-22-2010, 07:12 AM
$config['file_name'] malfunction - by El Forum - 07-22-2010, 07:20 AM
$config['file_name'] malfunction - by El Forum - 07-23-2010, 02:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB