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

[eluser]smilie[/eluser]
I am guessing (from CI userguide):

If set CodeIgniter will rename the uploaded file to this name. The extension provided in the file name must also be an allowed file type.

Therefore:
Code:
$config['file_name'] = $medewerker->solisid.".jpg";
should work.
However, you can never know what extension should it be - before file is uploaded...?

This is not tested, just stumbled upon it in the Userguide.

Regards,
Smilie


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