From 3b737fb286eb2ab3b38081641735010ebb53249e Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Fri, 20 Jun 2025 14:19:19 +0200 Subject: [PATCH] #90 Prefixing file names with the key --- hub/upload_confirm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/upload_confirm.php b/hub/upload_confirm.php index 671c648..a1b2700 100755 --- a/hub/upload_confirm.php +++ b/hub/upload_confirm.php @@ -361,7 +361,7 @@ it with the HPR Volunteer at admin@hackerpublicradio.org foreach($_FILES["media_files"]["tmp_name"] as $key => $val) { if ( $_FILES["media_files"]["error"][ "$key"] == 0 ) { $from = $_FILES["media_files"]["tmp_name"][ "$key"]; - $to = "${dir_structure}/" . $_FILES["media_files"]["name"][ "$key"] ; + $to = "${dir_structure}/${db_key}_" . $_FILES["media_files"]["name"][ "$key"] ; $moveResult = move_uploaded_file($from, $to); if ($moveResult != true) { echo "ERROR: File not moved correctly >$from< >$to<";