app: uploaded images for announcements, campaigns and events (APP-1.0-PLAN §10)
Photos (JPEG, PNG, WebP, checked by their bytes) uploaded in the admin are turned upright, stripped of their metadata and kept at most 2000 px wide in backend/uploads (UPLOAD_DIR), served at /api/uploads (never a listing, a sandboxing CSP). Content keeps the image's full address, so an upload and an image from elsewhere work alike. 5 GB included or the licence's storage limit; an image still in use can't be deleted. The announcement, campaign and event forms get Upload a photo next to the address. Migration media. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,3 +3,5 @@ dist/
|
||||
src/generated/
|
||||
.env
|
||||
/backups/
|
||||
# images uploaded in the admin (media/media.ts)
|
||||
/uploads/
|
||||
|
||||
Reference in New Issue
Block a user