feat: add multipart image uploads
Register Fastify multipart support, validate JPEG/PNG/WebP binary signatures, store upload bytes through ImageStorage, persist metadata after storage succeeds, clean up bytes on metadata failure, and document the upload boundary. Verification: npm test passed 68 tests and integration passed 14 tests. No build script is configured.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
API_PORT=3000
|
||||
IMAGE_STORAGE_ROOT=.local/image-storage
|
||||
DATABASE_URL=postgresql://pokemon_inventory:change-me@localhost:5433/pokemon_inventory
|
||||
INITIAL_ADMIN_EMAIL=
|
||||
INITIAL_ADMIN_PASSWORD=
|
||||
|
||||
Reference in New Issue
Block a user