📄 Receipt Upload Demo

Test the Cloudflare Worker with R2 presigned URLs

📚 API Workflow

  1. Request Upload URL: Call POST /request-upload-url to get a presigned R2 URL
  2. Upload File: Upload image directly to R2 using the presigned URL (PUT request)
  3. Submit & Finalize: Call POST /submit with fileId and metadata to move to permanent storage

🖼️ Upload Receipt Image

📁

Click to select or drag and drop your receipt image

Supports: JPEG, PNG, WebP (max 10MB)

⚡ Upload Progress

1️⃣ Requesting presigned upload URL...
2️⃣ Uploading file directly to R2...
3️⃣ Finalizing upload and moving to permanent storage...