• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$config['encrypt_name'] not working

#1
[eluser]akkumaru[/eluser]
i tried the upload class with configuration:
Code:
$config['encrypt_name'] = TRUE;

i suppose the config item defined will make the uploaded filename to be encypted,
but it is not,,
did i get it wrong?

then how to rename the uploaded file?

#2
[eluser]akkumaru[/eluser]
,,anyone?

#3
[eluser]Unknown[/eluser]
Not sure if you are still having problems with this but I came across the same problem.
I thought it wasn't working but when I checked the Upload library I realized that if you set "overwrite" = TRUE "encrypt_name" won't work. That solved my problem.

Cheers.

#4
[eluser]Josepzin[/eluser]
Thanks!

That works:
Code:
$config['overwrite']        = FALSE;
$config['encrypt_name']     = TRUE;


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.