From 28f1a33a2d814d384e84a9bfbf0f7fb3de682129 Mon Sep 17 00:00:00 2001 From: Shawn Date: Thu, 21 May 2026 14:55:13 -0400 Subject: [PATCH] gallery: increase server OCR timeout to 20s - 6s was too short for 13MB DNG upload on mobile - Bumped to 20s to handle large RAW photos - Added 'Uploading to server OCR...' status message during upload - Server OCR handles DNG correctly (tested via curl), so the timeout was the root cause of gallery upload failures --- static/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 31cce68..ce6b8c1 100644 --- a/static/index.html +++ b/static/index.html @@ -2641,8 +2641,9 @@ // Try server OCR first (handles more formats like DNG/RAW) let ocrData = null; try { + if (ocrEl) ocrEl.textContent = '⏳ Uploading to server OCR...'; const controller = new AbortController(); - const t = setTimeout(() => controller.abort(), 6000); + const t = setTimeout(() => controller.abort(), 20000); const fd = new FormData(); fd.append('file', file, file.name || 'sticker.jpg'); const res = await fetch('/api/ocr', {