From 4de027cfc3488339a492c92f613b164ea732c288 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 6 Jan 2026 16:09:47 -0700 Subject: [PATCH] Enable public uploads and chunking by default --- .env.example | 8 ++++---- app/app.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 0b8e492..287c7f7 100644 --- a/.env.example +++ b/.env.example @@ -5,8 +5,8 @@ MAX_CONCURRENT=3 ADMIN_PASSWORD=test123 TIMEZONE=America/Edmonton -# Public uploader page (optional) — disabled by default -PUBLIC_UPLOAD_PAGE_ENABLED=false +# Public uploader page (optional) +PUBLIC_UPLOAD_PAGE_ENABLED=true # Local dedupe cache (SQLite) STATE_DB=./data/state.db @@ -20,8 +20,8 @@ LOG_LEVEL=INFO # Chunked uploads (to work around 100MB proxy limits) # Enable to send files in chunks from browser to this service # Recommended chunk size for Cloudflare Tunnel is <= 95MB. -CHUNKED_UPLOADS_ENABLED=false -CHUNK_SIZE_MB=95 +CHUNKED_UPLOADS_ENABLED=true +CHUNK_SIZE_MB=50 # Custom session secrets # By default, a random one is generated diff --git a/app/app.py b/app/app.py index 31e26fc..7c9c309 100644 --- a/app/app.py +++ b/app/app.py @@ -216,7 +216,7 @@ def read_exif_datetimes(file_bytes: bytes): try: return datetime.strptime(s, "%Y:%m:%d %H:%M:%S") except Exception: - return None + return None, None if isinstance(dt_original, str): created = parse_dt(dt_original) if isinstance(dt_modified, str):