0) { $progress = round($downloaded / $download_size * 100); file_put_contents('progress.json', json_encode(['progress' => $progress])); } }); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 2000); $result = curl_exec($ch); curl_close($ch); fclose($fp); if ($result) { echo json_encode(['status' => 'success', 'link' => rtrim($site_url, '/') . '/' . $target_path]); } else { echo json_encode(['status' => 'error']); } exit; } // Progress check karne ke liye endpoint if (isset($_GET['check_progress'])) { if (file_exists('progress.json')) { echo file_get_contents('progress.json'); } else { echo json_encode(['progress' => 0]); } exit; } ?> Advanced Pro Uploader

PRO UPLOADER

Advanced Remote Tool