From 9852b4f0b794ca1d8206adf8744f5fd93d9c1584 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 2 May 2026 15:05:26 +0300 Subject: [PATCH] service 6 --- upload_audio.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/upload_audio.php b/upload_audio.php index 6b8c66b..abb841a 100755 --- a/upload_audio.php +++ b/upload_audio.php @@ -29,7 +29,7 @@ if (!in_array($audio_extension, array('m4a', 'mp3', 'wav'))) { $new_filename = $audio_name . '.' . $audio_extension; // Move the audio file to the uploads directory with the new filename -$target_dir = "audio_uploads/"; +$target_dir = "upload_audio/"; if (!is_dir($target_dir)) { mkdir($target_dir, 0755, true); // Create directory if it doesn't exist } @@ -41,9 +41,10 @@ if (!move_uploaded_file($audio_file['tmp_name'], $target_file)) { } // Construct the link to the uploaded audio file -$base_url = 'https://sefer.click/sefer/audio_uploads/'; // Replace with your actual domain +$base_url = 'https://api.intaleq.xyz/intaleq_v3/upload_audio/'; // Updated to match Intaleq V3 $linkAudio = $base_url . $new_filename; + // Respond with success and the audio file link echo json_encode(array('status' => 'Audio file uploaded successfully.', 'link' => $linkAudio));