Rename file upload not good in Mysql
Hi,
I have a problem with Rename File Function...
I have configured an Upload File... All is ok.
My code for Rename file : article_aleatoire number
<--
$nom_aleatoire = md5(uniqid(rand(), true)); ?>
$WA_RenameFile_Result1 = false;
if($WA_DFP_UploadStatus["WA_UploadResult1"]["statusCode"] == 1){
$WA_RenameFile_Result1 = WA_FileAssist_RenameFile("../pdf/", "".((isset($_FILES["art_fichier"]))?$_FILES["art_fichier"]["name"]:"") ."", "article_".$nom_aleatoire ."");
}
-->
The file is upload with the new good name but the name of the file inserted in Mysql is moose and not renamed...
If someone could help me ?
Thanks in advance,
Thomas