NW
301763f428
feat(admin): issue #146 — photo upload with sharp crop/optimization (restore old behavior)
- POST /api/upload: FormData, 10MB limit, sharp resize 800px inside + webp@80, saves to /app/uploads, returns /uploads/url
- GET /uploads/[...path]: serves files with Content-Type, path traversal protected
- compose: ./uploads mounted in tg_shop_admin
- Dockerfile: /app/uploads created + chown nextjs
- catalog-page: file input + thumbnail preview + remove for photoUrl/hiddenPhotoUrl
- Bot resolvePhotoSource already supports /uploads/ paths — no bot changes
2026-08-10 09:38:31 +01:00
..
2026-08-09 00:22:22 +01:00
2026-08-08 12:22:15 +01:00
2026-08-08 01:31:45 +01:00
2026-08-10 09:38:31 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00
2026-08-10 09:38:31 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00
2026-08-08 01:31:45 +01:00