Add 4 fields to Order model (productImagePath/Mime/Hash/Source). New ProductImageStorage class with magic-byte MIME detection (file-type), SHA-256 hash, 5MB limit, PNG/JPEG/WebP only. Routes POST/DELETE /:id/product-image in orders.routes.ts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| storage.ts | ||