mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#9073 added uniqid in image
This commit is contained in:
parent
1b82af24e8
commit
c92c355a3e
@ -744,6 +744,7 @@ class TipsWindow
|
||||
$imagesOk = [];
|
||||
foreach ($files as $key => $file) {
|
||||
$name = str_replace(' ', '_', $file['name']);
|
||||
$name = str_replace('.', uniqid().'.', $file['name']);
|
||||
$r = move_uploaded_file($file['tmp_name'], $dir.'/'.$name);
|
||||
$imagesOk[] = $name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user