feat(faz3): implement file upload with Cloudflare R2

- Add AWS SDK for S3-compatible R2 storage
- Create R2 client with presigned URL support
- Add attachment upload/download/delete API routes
- Create FileUpload and AttachmentList components
- Integrate file upload in message form (new & edit)
- Add .env.example with R2 configuration
This commit is contained in:
Yusuf İpek
2025-12-24 15:26:55 +03:00
parent 1626106a8b
commit 70d246bc17
10 changed files with 2078 additions and 14 deletions
+13 -8
View File
@@ -9,17 +9,19 @@
- [x] NextAuth.js entegrasyonu
- [x] User tablosu ve auth akışı
- [x] Temel layout ve routing
- [x] Dark mode aktifleştirildi
### Faz 2: Mesaj CRUD 🔲
- [ ] Message, Recipient, Attachment şemaları
- [ ] Mesaj oluşturma formu
- [ ] Mesaj listeleme/detay sayfaları
- [ ] Mesaj düzenleme/silme
### Faz 2: Mesaj CRUD
- [x] Message, Recipient, Attachment şemaları
- [x] Mesaj oluşturma formu
- [x] Mesaj listeleme/detay sayfaları
- [x] Mesaj düzenleme/silme
- [x] IDOR güvenlik açığı düzeltildi
### Faz 3: Dosya Yükleme (R2) 🔲
- [ ] Cloudflare R2 entegrasyonu
- [ ] Dosya upload/download API
- [ ] Dosya listeleme UI
- [x] Cloudflare R2 entegrasyonu
- [x] Dosya upload/download API
- [x] Dosya listeleme UI
### Faz 4: Client-side Encryption 🔲
- [ ] Web Crypto API wrapper
@@ -56,6 +58,9 @@
- ✅ Teknoloji stack seçimi
- ✅ Memory bank oluşturma
- ✅ Faz planlaması
- ✅ Faz 1: Auth sistemi
- ✅ Faz 2: Mesaj CRUD
- ✅ Faz 3: Dosya Yükleme (R2)
## Bilinen Sorunlar
(henüz yok)