From 8de5659fa6c1a009878e715ccaec8a6cee2ca6e4 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Fri, 9 Jan 2026 22:41:09 -0500 Subject: [PATCH] Increase temp file expiry from 5 to 10 minutes - Update TEMP_FILE_EXPIRY constant (300 -> 600 seconds) - Update all UI references to the new 10 minute expiry Co-Authored-By: Claude Opus 4.5 --- frontends/web/templates/about.html | 2 +- frontends/web/templates/decode.html | 2 +- frontends/web/templates/encode_result.html | 2 +- src/stegasoo/constants.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontends/web/templates/about.html b/frontends/web/templates/about.html index 392d42c..7db8d58 100644 --- a/frontends/web/templates/about.html +++ b/frontends/web/templates/about.html @@ -565,7 +565,7 @@ File expiry - 5 min + 10 min PIN diff --git a/frontends/web/templates/decode.html b/frontends/web/templates/decode.html index c6c90d6..e80228d 100644 --- a/frontends/web/templates/decode.html +++ b/frontends/web/templates/decode.html @@ -158,7 +158,7 @@
- File expires in 5 minutes. Download now. + File expires in 10 minutes. Download now.
diff --git a/frontends/web/templates/encode_result.html b/frontends/web/templates/encode_result.html index 6fbd092..4d2219e 100644 --- a/frontends/web/templates/encode_result.html +++ b/frontends/web/templates/encode_result.html @@ -128,7 +128,7 @@ Important:
    -
  • This file expires in 5 minutes
  • +
  • This file expires in 10 minutes
  • Do not resize or recompress the image
  • {% if embed_mode == 'dct' and output_format == 'jpeg' %}
  • JPEG format is lossy - avoid re-saving or editing
  • diff --git a/src/stegasoo/constants.py b/src/stegasoo/constants.py index 724b5cf..38b419d 100644 --- a/src/stegasoo/constants.py +++ b/src/stegasoo/constants.py @@ -108,8 +108,8 @@ MIN_KEY_PASSWORD_LENGTH = 8 # ============================================================================ # Temporary file storage -TEMP_FILE_EXPIRY = 300 # 5 minutes in seconds -TEMP_FILE_EXPIRY_MINUTES = 5 +TEMP_FILE_EXPIRY = 600 # 10 minutes in seconds +TEMP_FILE_EXPIRY_MINUTES = 10 # Thumbnail settings THUMBNAIL_SIZE = (250, 250) # Maximum dimensions for thumbnails