service 6

This commit is contained in:
Hamza-Ayed
2026-05-02 15:05:26 +03:00
parent 3bf2b0496f
commit 9852b4f0b7

View File

@@ -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));