Skip to content

handler,upload_url: raise max upload TTL from 7 to 365 days - #30

Merged
acoshift merged 1 commit into
mainfrom
ttl-365-days
Jul 1, 2026
Merged

handler,upload_url: raise max upload TTL from 7 to 365 days#30
acoshift merged 1 commit into
mainfrom
ttl-365-days

Conversation

@acoshift

@acoshift acoshift commented Jul 1, 2026

Copy link
Copy Markdown
Member

What

Raise the dropbox upload TTL max from 7 → 365 days. Behavior otherwise identical (default 1; sub-1/invalid still clamp to 1).

  • handler.go (POST /) and upload_url.go (signed-upload grant) clamps: > 7> 365.
  • Comment + CLAUDE.md + README.md (3 spots) → 1–365.
  • handler_test.go boundaries: {"8", 8}, {"365", 365}, {"366", 1}.

files.ttl is integer — holds 365, no schema change. Stored bytes are now billed as dropbox_storage (api#125 / apiserver), so longer-lived files are cost-covered; GC still reclaims on expiry.

Verified: go build ./... + go test ./... (126 tests) green.

@acoshift
acoshift merged commit 43e24b5 into main Jul 1, 2026
2 checks passed
@acoshift
acoshift deleted the ttl-365-days branch July 1, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant