wifi timeouts, small changes for sd card access

This commit is contained in:
2025-10-10 22:45:35 +02:00
parent 7e20aa65e1
commit de44c789af
3 changed files with 17 additions and 6 deletions

View File

@@ -57,6 +57,8 @@ setInterval(updateProgress, 500); // Update progress every second
var timeoutMs;
if ((this.__url || '').indexOf('/upload') !== -1) {
timeoutMs = 600000; // 10 minutes for uploads
} else if ((this.__url || '').indexOf('/directory') !== -1) {
timeoutMs = 30000; // 30 seconds for directory listing (can be large)
} else if (this.__method === 'GET') {
timeoutMs = 6000;
} else {
@@ -497,4 +499,3 @@ function deleteFileOnServer() {
};
xhr.send();
}