diff --git a/src/components/upload/PhotoUpload.tsx b/src/components/upload/PhotoUpload.tsx index 85371389..a4cf93df 100644 --- a/src/components/upload/PhotoUpload.tsx +++ b/src/components/upload/PhotoUpload.tsx @@ -119,7 +119,7 @@ export function PhotoUpload({ while (attempts < maxAttempts) { try { // Use direct fetch with URL parameters instead of supabase.functions.invoke with body - const response = await fetch(`https://ydvtmnrszybqnbcqbdcy.supabase.co/functions/v1/upload-image?imageId=${encodeURIComponent(id)}`, { + const response = await fetch(`https://ydvtmnrszybqnbcqbdcy.supabase.co/functions/v1/upload-image?id=${encodeURIComponent(id)}`, { method: 'GET', headers: { 'Authorization': `Bearer ${(await supabase.auth.getSession()).data.session?.access_token}`,