Update: 2026-06-12 01:23:54
This commit is contained in:
@@ -51,8 +51,10 @@ if (!move_uploaded_file($audio_file['tmp_name'], $target_file)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Construct the link to the uploaded audio file
|
||||
$base_url = 'https://api.intaleq.xyz/siro_v3/upload_audio/'; // Updated to match Siro V3
|
||||
// Construct the link to the uploaded audio file dynamically
|
||||
$host = $_SERVER['HTTP_HOST'] ?? 'api.siromove.com';
|
||||
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https" : "http";
|
||||
$base_url = "$protocol://$host/siro/upload_audio/";
|
||||
$linkAudio = $base_url . $new_filename;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user