Welcome Guest, Not a member yet? Register   Sign In
File uploading - encrypt name dont encrypt
#1

[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
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB