Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: show helpful error when upload times out or is interrupted

LearningCircuit6d1fd63a6ab6
diff --git a/src/local_deep_research/web/static/js/collection_upload.js b/src/local_deep_research/web/static/js/collection_upload.js
index 0b23780d9c..d7386fc1b7 100644
--- a/src/local_deep_research/web/static/js/collection_upload.js
+++ b/src/local_deep_research/web/static/js/collection_upload.js
@@ -275,7 +275,20 @@ async function handleUploadFiles(e) {
}
} catch (error) {
console.error('Error uploading files:', error);
- showError('Upload failed: ' + error.message);
+ // Check if this is a network error likely caused by timeout or payload too large
+ if (error.message.includes('NetworkError') || error.message.includes('Failed to fetch') || error.name === 'AbortError') {
+ const fileCount = selectedFiles.length;
+ const totalSize = selectedFiles.reduce((sum, f) => sum + f.size, 0);
+ const totalSizeMB = (totalSize / (1024 * 1024)).toFixed(1);
+ showError(
+ `<strong>Upload interrupted</strong><br><br>` +
+ `The upload of ${fileCount} files (${totalSizeMB} MB) was interrupted - likely due to timeout or size limits.<br><br>` +
+ `<strong>Note:</strong> Some files may have been uploaded successfully. Check the collection to see which files made it.<br><br>` +
+ `<strong>Tip:</strong> For large batches, upload 10-20 files at a time to avoid timeouts.`
+ );
+ } else {
+ showError('Upload failed: ' + error.message);
+ }
} finally {
submitBtn.disabled = false;
submitBtn.innerHTML = '<i class="fas fa-upload"></i> 🚀 Upload Files';