Revert to 'files' bucket and update error messages

- Revert bucket name from 'file-storage' back to 'files'
- Update error messages to indicate Storage policy issues
- Files bucket exists but may need proper RLS policies

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-08-19 14:25:12 +09:00
parent 3ee4b98ee0
commit 73d5359deb

View File

@@ -528,7 +528,7 @@ class FileManager {
// Storage 버킷 확인 // Storage 버킷 확인
const bucketExists = await SupabaseHelper.checkOrCreateBucket(); const bucketExists = await SupabaseHelper.checkOrCreateBucket();
if (!bucketExists) { if (!bucketExists) {
throw new Error('Storage 버킷이 설정되지 않았습니다. Supabase Dashboard에서 "files" 버킷을 생성해주세요.'); throw new Error('Storage 버킷 접근 권한이 없습니다. Storage 정책을 확인해주세요.');
} }
// Supabase Storage에 업로드 // Supabase Storage에 업로드
@@ -599,7 +599,7 @@ class FileManager {
// Storage 버킷 확인 // Storage 버킷 확인
const bucketExists = await SupabaseHelper.checkOrCreateBucket(); const bucketExists = await SupabaseHelper.checkOrCreateBucket();
if (!bucketExists) { if (!bucketExists) {
throw new Error('Storage 버킷이 설정되지 않았습니다. 관리자에게 문의하세요.'); throw new Error('Storage 버킷 접근 권한이 없습니다. Storage 정책을 확인해주세요.');
} }
const url = await SupabaseHelper.getFileUrl(filePath); const url = await SupabaseHelper.getFileUrl(filePath);