mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Admin setting for the maximum upload size
- Admin -> Settings: maximum upload size per file (1-1024 MB, default 50), stored in a new settings table and read on each use, so a change applies to every process at once - Enforced by attachment validation and the direct-upload endpoint; upload forms, bulk upload and Admin -> About show the current limit - .sam.zip import accepts files up to 1 GB to match Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f548f3874
commit
ef7cd2efba
16 files changed
+186
-13
No files matched your search
@@ -21,7 +21,7 @@ module AircraftArchive
|
||||
OPTIONAL_KEYS = %w[features].freeze # and flight_logs before schema v2
|
||||
|
||||
MANIFEST_MAX_BYTES = 50.megabytes
|
||||
FILE_MAX_BYTES = 512.megabytes
|
||||
FILE_MAX_BYTES = 1.gigabyte # the most Admin → Settings allows for uploads
|
||||
ARCHIVE_MAX_BYTES = 10.gigabytes # uncompressed
|
||||
MAX_RATIO = 100 # compression ratio above this looks like a zip bomb
|
||||
|
||||
|
||||
Reference in new issue
Block a user