Changelog
CodeShare project brief 2026-06

v2.0.0 · Cloudflare R2 direct upload for large files

As submissions grow, screenshots and zips fill the app server’s disk and bandwidth. The path is browser → R2, metadata in the database.

Added

Highlights

  • ⭐ Presigned PUT uploads: screenshots, video, and source packs go straight to R2
  • ⭐ Complete callback: kind, size, etag, and status land with the listing
  • ⭐ Private-bucket reads: download and preview use short-lived signed GET or a controlled proxy

Details

  • Admin uploads use the same object rules—no second pipeline for staff
  • MIME and size allowlists per kind; object keys reject path traversal
  • CORS, daily quotas, and orphan cleanup are configurable
  • Thumbnails can use a public read host or longer-lived signatures, per operator settings

Changed

  • Large files no longer default to multipart/form-data into the app process
  • Version: v2.0.0

Notes

  • Credentials never ship to the browser as long-lived secrets; unsigned complete uploads should expire and clean up.
  • After upgrade, fill R2 settings and smoke-test: request upload → PUT → callback → visible on the detail page.
Views (0)

Comments

No comments yet