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