RFC-004: Sharing Options Implementation
Overview
Technical implementation for softcopy QR code generation and delivery.
Feature Requirements
Feature: Provide a QR code for users to download the digital softcopy of their pictures.
Details:
- Softcopy is available when the tenant's subscription/license is active.
- The booth user does not pay to unlock the download QR.
- Storage cost is part of the tenant-facing product cost.
Business Model
Tenant-Paid Access
- Tenant pays through subscription or one-time license purchase
- Softcopy can be included as a plan entitlement
- All eligible booth sessions can expose the download QR without end-user payment
Cloud Storage Architecture
Storage Bucket Structure
photobooth-uploads/
└── {tenant_id}/
└── {event_id}/
└── {timestamp}_{uuid}.jpg
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/upload | Upload photo to storage |
| GET | /api/download/{photo_id} | Generate download URL |
| POST | /api/qr/generate | Create QR code |
QR Code Configuration
interface QRConfig {
url: string; // Presigned download URL
size: number; // QR code size in pixels
errorCorrection: "L" | "M" | "Q" | "H";
expiresIn: number; // URL expiry in seconds
}
Implementation Phases
- Phase 1: Cloud storage upload integration
- Phase 2: Presigned URL generation
- Phase 3: QR code rendering
- Phase 4: Download page (hosted URL)