Enable public uploads and chunking by default

This commit is contained in:
2026-01-06 16:09:47 -07:00
parent 5329844264
commit 4de027cfc3
2 changed files with 5 additions and 5 deletions

View File

@@ -5,8 +5,8 @@ MAX_CONCURRENT=3
ADMIN_PASSWORD=test123 ADMIN_PASSWORD=test123
TIMEZONE=America/Edmonton TIMEZONE=America/Edmonton
# Public uploader page (optional) — disabled by default # Public uploader page (optional)
PUBLIC_UPLOAD_PAGE_ENABLED=false PUBLIC_UPLOAD_PAGE_ENABLED=true
# Local dedupe cache (SQLite) # Local dedupe cache (SQLite)
STATE_DB=./data/state.db STATE_DB=./data/state.db
@@ -20,8 +20,8 @@ LOG_LEVEL=INFO
# Chunked uploads (to work around 100MB proxy limits) # Chunked uploads (to work around 100MB proxy limits)
# Enable to send files in chunks from browser to this service # Enable to send files in chunks from browser to this service
# Recommended chunk size for Cloudflare Tunnel is <= 95MB. # Recommended chunk size for Cloudflare Tunnel is <= 95MB.
CHUNKED_UPLOADS_ENABLED=false CHUNKED_UPLOADS_ENABLED=true
CHUNK_SIZE_MB=95 CHUNK_SIZE_MB=50
# Custom session secrets # Custom session secrets
# By default, a random one is generated # By default, a random one is generated

View File

@@ -216,7 +216,7 @@ def read_exif_datetimes(file_bytes: bytes):
try: try:
return datetime.strptime(s, "%Y:%m:%d %H:%M:%S") return datetime.strptime(s, "%Y:%m:%d %H:%M:%S")
except Exception: except Exception:
return None return None, None
if isinstance(dt_original, str): if isinstance(dt_original, str):
created = parse_dt(dt_original) created = parse_dt(dt_original)
if isinstance(dt_modified, str): if isinstance(dt_modified, str):