From 29e7afcd427f95474cc5359a959252bf611e834e Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 22 Mar 2021 20:46:53 +0000 Subject: [PATCH] small fix for recent audio store changes git-svn-id: svn://192.168.202.10@3400 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/vicidial/audio_store.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/audio_store.php b/agc_2-X/trunk/www/vicidial/audio_store.php index cf070b53..cd0f48ef 100644 --- a/agc_2-X/trunk/www/vicidial/audio_store.php +++ b/agc_2-X/trunk/www/vicidial/audio_store.php @@ -654,16 +654,15 @@ if ($action == "MANUALUPLOAD") $audiofile_name = preg_replace("/\^/",'',$audiofile_name); if (preg_match("/\.wav$|\.gsm$/", $audiofile_name)) { + copy($AF_path, "$WeBServeRRooT/$sounds_web_directory/$audiofile_name"); + chmod("$WeBServeRRooT/$sounds_web_directory/$audiofile_name", 0766); + $audio_epoch = date("U"); $audio_format='gsm'; $audio_filesize = filesize("$WeBServeRRooT/$sounds_web_directory/$audiofile_name"); $audio_length = ($audio_filesize / 1650); $wav_format_details=''; $wav_asterisk_valid='NA'; - - copy($AF_path, "$WeBServeRRooT/$sounds_web_directory/$audiofile_name"); - chmod("$WeBServeRRooT/$sounds_web_directory/$audiofile_name", 0766); - echo "
"._QXZ("SUCCESS").": $audiofile_name "._QXZ("uploaded")." "._QXZ("size").": $audio_filesize

\n"; if (preg_match("/\.wav$/", $audiofile_name))