Skip to content

Add projects s3 upload and fix s3 list envelope - #3

Open
goclfc wants to merge 2 commits into
masterfrom
kisley/s3-upload
Open

Add projects s3 upload and fix s3 list envelope#3
goclfc wants to merge 2 commits into
masterfrom
kisley/s3-upload

Conversation

@goclfc

@goclfc goclfc commented Aug 31, 2026

Copy link
Copy Markdown

Summary

  • usectl projects s3 upload <project-id> --key --file PUTs raw bytes to /api/projects/{id}/s3/objects?key= (manager API, same auth as list/download).
  • List now unmarshals the live envelope {objects, prefixes, prefix, bucket} instead of a bare []S3Object.

Ken owns the PUT handler and making list a real bucket read. One list shape only.

Test plan

  • usectl projects s3 upload <id> --key proof.txt --file ./proof.txt --json
  • usectl projects s3 list <id> --json returns {objects, prefixes, ...}
  • download/toggle/cdn unchanged

goclfc added 2 commits August 31, 2026 11:31
CLI: usectl projects s3 upload <id> --key --file talks to manager PUT /api/projects/{id}/s3/objects?key=
List unmarshals {objects, prefixes, prefix, bucket} instead of a bare array.
Shared client is 30s; same special-case as image-part push (Timeout 0). Set Content-Length from the file size.
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