feat: upload course materials to bunny storage
This commit is contained in:
@@ -38,9 +38,10 @@ BUNNY_STORAGE_PASSWORD=the-storage-zone-password
|
||||
BUNNY_STORAGE_ENDPOINT=https://the-storage-endpoint-shown-in-bunny
|
||||
BUNNY_STORAGE_CDN_HOST=https://your-pull-zone.b-cdn.net
|
||||
BUNNY_COVER_MAX_UPLOAD_MB=10
|
||||
BUNNY_ASSET_MAX_UPLOAD_MB=100
|
||||
```
|
||||
|
||||
The Storage Password is available in Bunny's **Storage Zone → FTP & API Access** section. Never expose it as a `VITE_` variable. In Academy, instructors can upload only JPG, PNG, or WebP cover images; the API verifies the image bytes and uploads them under a generated `covers/` filename. The CDN URL is then saved on the course.
|
||||
The Storage Password is available in Bunny's **Storage Zone → FTP & API Access** section. Never expose it as a `VITE_` variable. In Academy, instructors can upload JPG, PNG, or WebP cover images and PDF, DOCX, XLSX, CSV, or ZIP support materials; the API validates the file bytes and determines the material type and size automatically. Covers are stored under `covers/` and course materials under `materials/`.
|
||||
|
||||
### Bunny processing webhooks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user