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:
@@ -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();
|
||||
Reference in New Issue
Block a user