CodeIgniter Forums
File uploading - encrypt name dont encrypt - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: File uploading - encrypt name dont encrypt (/showthread.php?tid=40167)



File uploading - encrypt name dont encrypt - El Forum - 03-31-2011

[eluser]mestresan[/eluser]
Hi,

I am trying to use file uploading... it's working, but, the option encrypt_name = TRUE dont work.
The file name is the same.... I want a unique name...

$config['allowed_types'] = 'gif|jpg|png';
$config['encrypt_name'] = TRUE;
$this->load->library('upload', $config);

result of upload is:
Array ( [file_name] => 0moyr.gif [file_type] => image/gif [file_path] => D:/server_dev/arquivos/fotos/ [full_path] => D:/server_dev/arquivos/fotos/0moyr.gif [raw_name] => 0moyr [orig_name] => 0moyr.gif [client_name] => 0moyr.gif [file_ext] => .gif [file_size] => 1228.03 [is_image] => 1 [image_width] => 203 [image_height] => 238 [image_type] => gif [image_size_str] => width="203" height="238" )

anyone can help me ?

thx


File uploading - encrypt name dont encrypt - El Forum - 03-31-2011

[eluser]mestresan[/eluser]
Ignore me... the problem was "overwrite" option... need to be FALSE.