Andrey Antukh 158fa39156 🐛 Add accumulated storage byte quota for media uploads
Add media-storage-bytes-per-team quote to prevent persistent DoS via
repeated uploads. The quota sums storage_object sizes from both
file_media_object (media + thumbnails) and team_font_variant
(otf/ttf/woff1/woff2). Default limit is 20 GiB per team, configurable
via PENPOT_QUOTES_MEDIA_STORAGE_BYTES_PER_TEAM.

The check is invoked in upload-file-media-object before processing,
looking up the team-id via file -> project -> team_id join.

AI-assisted-by: mimo-v2.5-pro
2026-08-04 08:22:53 +00:00
..
2026-07-31 18:53:05 +02:00
2026-06-30 16:15:30 +02:00
2026-01-22 13:55:41 +01:00
2024-05-29 19:05:04 +02:00