Update Saqel Platform: 2026-09-02 08:20:41
This commit is contained in:
@@ -506,7 +506,13 @@ class CurriculumStudio
|
||||
const raw = await res.text();
|
||||
let data;
|
||||
try { data = JSON.parse(raw); }
|
||||
catch (_) { throw new Error(`HTTP ${res.status}: ${raw.slice(0, 240) || 'استجابة غير مفهومة من السيرفر'}`); }
|
||||
catch (_) {
|
||||
const plain = raw.replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim();
|
||||
if (res.status === 413) {
|
||||
throw new Error('حجم الفيديو أكبر من الحد المسموح في Nginx. ارفع client_max_body_size إلى 512M أو أكثر.');
|
||||
}
|
||||
throw new Error(`HTTP ${res.status}: ${plain.slice(0, 240) || 'استجابة غير مفهومة من السيرفر'}`);
|
||||
}
|
||||
if (res.ok && data.status === 'processing') {
|
||||
currentUploadTaskId = data.task_id;
|
||||
statusSpan.textContent = data.message || '⏳ تم استلام الفيديو، جاري تحويله ورفعه إلى Cloudflare...';
|
||||
|
||||
Reference in New Issue
Block a user