From 70a47ac905e0344d627e3cb9f487f55389ca1565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Wed, 19 Aug 2026 14:33:08 +0400 Subject: [PATCH] =?UTF-8?q?v0.0.43:=20=D1=82=D0=B0=D0=B9=D0=BC=D0=B0=D1=83?= =?UTF-8?q?=D1=82=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8=2030?= =?UTF-8?q?=D1=81=20=E2=86=92=20300=D1=81=20(=D0=B7=D0=B0=D0=B3=D1=80?= =?UTF-8?q?=D1=83=D0=B7=D0=BA=D0=B0=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B8?= =?UTF-8?q?=D1=85=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=20=D0=BD=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=B1=D0=B8=D0=BB=D1=8C=D0=BD=D0=B0=20=D1=87?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B7=20=D1=88=D0=BB=D1=8E=D0=B7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 2 +- site/templates/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/app.py b/site/app.py index b94c351..c30ce86 100644 --- a/site/app.py +++ b/site/app.py @@ -20,7 +20,7 @@ if _sys_path_root not in sys.path: sys.path.insert(0, _sys_path_root) # Версия приложения (меняется при изменениях) -VERSION = "0.0.42" +VERSION = "0.0.43" def create_app(): diff --git a/site/templates/index.html b/site/templates/index.html index ac12186..d9e8077 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -393,7 +393,7 @@ async function uploadFiles() { const url = '/api/upload?_=' + Date.now(); const xhr = new XMLHttpRequest(); xhr.open('POST', url); - xhr.timeout = 30000; + xhr.timeout = 300000; // 300с: загрузка больших файлов нестабильна через шлюз xhr.upload.onprogress = function(e) { if (e.lengthComputable) { const pct = Math.round(e.loaded / e.total * 100); @@ -417,7 +417,7 @@ async function uploadFiles() { } }; xhr.onerror = function() { reject(new Error('Сеть')); }; - xhr.ontimeout = function() { reject(new Error('Таймаут 30с')); }; + xhr.ontimeout = function() { reject(new Error('Таймаут 300с')); }; activeXHR = xhr; xhr.send(fd); });