ComfyUI/app/assets
Luke Mino-Altherr 9f9db2c2c2 refactor: extract multipart upload parsing from routes
- Add app/assets/api/upload.py with parse_multipart_upload() for HTTP parsing
- Add ParsedUpload dataclass to schemas_in.py
- Add domain exceptions (AssetValidationError, AssetNotFoundError, HashMismatchError)
- Add manager.process_upload() with domain exceptions (no HTTP status codes)
- Routes map domain exceptions to HTTP responses
- Slim down upload_asset route to ~20 lines (was ~150)

Amp-Thread-ID: https://ampcode.com/threads/T-019c2519-abe1-738a-ad2e-29ece17c0e42
Co-authored-by: Amp <amp@ampcode.com>
2026-02-03 13:08:04 -08:00
..
api refactor: extract multipart upload parsing from routes 2026-02-03 13:08:04 -08:00
database Refactor helpers.py: move functions to their respective modules 2026-02-03 13:08:04 -08:00
services Move get_comfy_models_folders to path_utils.py to avoid late import 2026-02-03 13:08:04 -08:00
helpers.py Refactor helpers.py: move functions to their respective modules 2026-02-03 13:08:04 -08:00
manager.py refactor: extract multipart upload parsing from routes 2026-02-03 13:08:04 -08:00