Commit bd8edd8d authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: avatar upload — add missing apikey header for Supabase Storage

Supabase Storage requires both Authorization and apikey headers. The
missing apikey caused "No API key found in request" → 500 on upload.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent fda0afc5
......@@ -73,6 +73,7 @@ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . SUPABASE_SERVICE_KEY,
'apikey: ' . SUPABASE_ANON_KEY,
'Content-Type: ' . $mime,
'x-upsert: true'
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment