feat: upgrade max upload size to 5 GB and add rolling limit env var#89
Closed
dobby-coder[bot] wants to merge 1 commit into
Closed
feat: upgrade max upload size to 5 GB and add rolling limit env var#89dobby-coder[bot] wants to merge 1 commit into
dobby-coder[bot] wants to merge 1 commit into
Conversation
- Update VITE_MAX_UPLOAD_SIZE from 2 GiB (2147483648) to 5 GB (5000000000) - Add VITE_ROLLING_LIMIT=15000000000 (15 GB per 2 weeks per email) - Export ROLLING_LIMIT from env.ts for frontend consumption - Switch display math from binary GiB (1024^3) to decimal GB (1e9) for consistency with the "GB" unit shown in the UI - Update hardcoded "2 GB" strings in en/nl locale files to "5 GB" - Document VITE_ROLLING_LIMIT in README Closes #85
5 tasks
Contributor
This was referenced Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the frontend configuration changes for the new upload limits:
VITE_MAX_UPLOAD_SIZE: bumped from 2 GiB (2,147,483,648 bytes) to 5 GB (5,000,000,000 bytes)VITE_ROLLING_LIMIT: new env var set to 5 GB (5,000,000,000 bytes) — 5 GB per 2 weeks per email addressROLLING_LIMITfromsrc/lib/env.tsso the frontend (and the upcoming UI warning work in Show clear warnings and errors when approaching or hitting upload limits #87) can consume it1024^3) to decimal GB (1e9) for consistency with the "GB" label shown in the UIVITE_ROLLING_LIMITin READMERelated issues
ROLLING_LIMITand the backend usage endpoint)Notes
ROLLING_LIMITis exported and available but not yet consumed in the UI — that work belongs to Show clear warnings and errors when approaching or hitting upload limits #87, which will wire it up to the/usageendpoint from cryptify#100MAX_UPLOAD_SIZE / (1024 ** 3)→MAX_UPLOAD_SIZE / 1e9. This ensures "5 GB" displays as "5.00" and not "4.66"Verification