fix: Supabase storage upload hatasını çözmek için dosya adlarındaki Türkçe karakterler ve boşluklar temizlendi

This commit is contained in:
mstfyldz
2026-08-12 11:22:05 +03:00
parent 571e1f63d1
commit e25bab8146
5 changed files with 47 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
require('dotenv').config();
const { createClient } = require('@supabase/supabase-js');
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_ROLE_KEY);
async function run() {
const { data, error } = await supabase.storage.from('case-documents').upload('templates/test_user_id/şablon dosyası.udf', Buffer.from('hello'), { contentType: 'application/octet-stream' });
if (error) console.error('Error:', error);
else console.log('Success:', data);
}
run();