mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 16:51:13 -05:00
Fix: Resolve TypeScript errors
This commit is contained in:
@@ -110,6 +110,9 @@ export function UppyPhotoSubmissionUpload({
|
||||
const { uploadURL, id: cloudflareId } = uploadData;
|
||||
|
||||
// Upload file to Cloudflare
|
||||
if (!photo.file) {
|
||||
throw new Error('Photo file is missing');
|
||||
}
|
||||
const formData = new FormData();
|
||||
formData.append('file', photo.file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user