Refactor photo upload pipeline

Implement comprehensive error recovery mechanisms for the photo upload pipeline in `UppyPhotoSubmissionUpload.tsx`. This includes adding exponential backoff to retries, graceful degradation for partial uploads, and cleanup for orphaned Cloudflare images. The changes also enhance error tracking and user feedback for failed uploads.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-08 00:11:55 +00:00
parent c490bf19c8
commit c79538707c
2 changed files with 215 additions and 46 deletions

View File

@@ -18,6 +18,7 @@ export interface PhotoWithCaption {
date?: Date; // Optional date for the photo
order: number;
uploadStatus?: 'pending' | 'uploading' | 'uploaded' | 'failed';
cloudflare_id?: string; // Cloudflare Image ID after upload
}
interface PhotoCaptionEditorProps {