From afb4f3f10609b87ba1fb286a31bd3ec5362adb21 Mon Sep 17 00:00:00 2001 From: Greirson Lee-Thorp Date: Mon, 3 Feb 2025 22:29:42 -0800 Subject: [PATCH] feat: Enhance AUTO_UPLOAD configuration parsing - Improve AUTO_UPLOAD environment variable parsing - Add support for multiple truthy values ('true', '1', 'yes') - Convert input to lowercase for case-insensitive comparison --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 3e7cd5f..985cd92 100644 --- a/public/index.html +++ b/public/index.html @@ -60,7 +60,7 @@ const CHUNK_SIZE = 1024 * 1024; // 1MB chunks const MAX_RETRIES = 3; const RETRY_DELAY = 1000; - const AUTO_UPLOAD = '{{AUTO_UPLOAD}}' === 'true'; + const AUTO_UPLOAD = ['true', '1', 'yes'].includes('{{AUTO_UPLOAD}}'.toLowerCase()); // Utility function to generate a unique batch ID function generateBatchId() {