wifi timeouts, small changes for sd card access
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user