Direct PUT to R2 presigned URL is cross-origin, causing "Failed to fetch" in browsers without R2 CORS configured. Use the existing PUT /api/upload proxy handler instead — file goes client → Next.js → R2 server-side. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| app | ||
| components | ||
| db | ||
| hooks | ||
| lib | ||
| scripts | ||
| types | ||
| auth.ts | ||
| middleware.ts | ||