If you choose a mp3 file like "03 - Beatles - Help", you can upload this successful to something like "origX_03 - Beatles - Help", but this file cannot be delete through web UI.
I change the code like this:
Index: page.music.php
===================================================================
--- page.music.php (revision 6987)
+++ page.music.php (working copy)
@@ -519,7 +519,7 @@
if (($numf == 1) && ($category == "default") ){
echo "<h5>"._("You must have at least one file for On Hold Music. Please upload one before deleting this one.")."</h5>";
} else {
- if (@unlink($path_to_dir."/".$del)) {
+ if (exec("rm -f ".$path_to_dir."/".$del."*")) {
echo "<h5>"._("Deleted")." ".$del."!</h5>";
} else {
echo "<h5>".sprintf(_("Error Deleting %s"),$del)."!</h5>";
By delete "origX_*" in the current directory.
Don't know if this will make any conflicts. It is best to have another script process moh directory, and escape any invalid filename when uploading.