X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fattachments.php;h=639fbd9fdb985eae6443d8cd84ba5a4b9fb716a8;hb=06a878fac8f2aa889ee481a22bc9f68fef1f7c8b;hp=2f41d80c14cc15cef973f5dedb2e4b3b0b1232e9;hpb=de09a35c9e55aceaf1c71052cbb40f44e4b3bbc7;p=fa-stable.git diff --git a/admin/attachments.php b/admin/attachments.php index 2f41d80c..639fbd9f 100644 --- a/admin/attachments.php +++ b/admin/attachments.php @@ -116,7 +116,7 @@ if ($Mode == 'ADD_ITEM' || $Mode == 'UPDATE_ITEM') unlink($dir."/".$unique_name); } else - $unique_name = uniqid(''); + $unique_name = random_id(); //save the file move_uploaded_file($tmpname, $dir."/".$unique_name);