• Mahmoud Aglan's avatar
    fix: image upload — add apikey header + public URL with anon key · af58cbf5
    Mahmoud Aglan authored
    Upload was failing because:
    1. Missing 'apikey' header on PUT request to Supabase Storage
    2. Public URL needs ?apikey= query param for this Supabase instance
    
    Fixed:
    - Added 'apikey: SERVICE_KEY' header to upload curl request
    - Public URL now includes anon key: .../branding/slot.ext?apikey=ANON_KEY
    - Browser can load the image directly from this URL
    - Survives deploys (stored in Supabase Storage, URL in platform_assets)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    af58cbf5
branding.php 42.2 KB