CodeIgniter Forums
File uploading error - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: File uploading error (/showthread.php?tid=19140)

File uploading error - El Forum - 05-29-2009


I have been trying to upload a file with following file uploading class: Please check this code

$config['upload_path'] = 'files/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '500';
$config['max_width'] = '500';
$config['max_height'] = '500';
$config['overwrite'] = TRUE;
$config['encrypt_name'] = TRUE;

I have a problem with $config[‘encrypt_name’] -> the name of a file should be changed to some random string, but isn’t - it has still the original filename. Undecided


File uploading error - El Forum - 05-29-2009

Please show more of your code.

EDIT: Also, after you've initialised the library, please try this:


File uploading error - El Forum - 05-29-2009

[eluser]Evil Wizard[/eluser]
Following what TheFuzzy0ne said, just after I would do the following
just to see what the upload class actually did with the file.