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<";