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.

Serve the share page from the extensionless asset path0e4544f
TypeScript4 lines184 B
export const MAX_FILE = 5 * 1024 ** 3;export const MAX_SINGLE_PUT = 100 * 1024 ** 2;export const EXPIRIES: Record<string, number> = { "1h": 3600e3, "24h": 86400e3, "7d": 604800e3 };