Skip to content

gitflarePublicPartly agent-ready50

cf-r2-drop

Drag-and-drop file sharing on Cloudflare R2: multipart uploads, expiring share links, previews, download counts, lifecycle expiry.

main
Serve the share page from the extensionless asset path0e4544f
Markdown9 lines515 B

Security

Report vulnerabilities privately to the maintainers through GitHub Security Advisories on the repository. Don't open public issues for them.

Design notes:

  • Links are HMAC-SHA256 signed, and the signature is verified on every request.
  • Keep LINK_SECRET in wrangler secret, or in .dev.vars locally. Never commit it. Rotating it invalidates all links.
  • Content type comes only from the declared type, and downloads are served with safe filenames.
  • Expiry and revocation are enforced server-side.