mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-29 03:27:05 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user