ComfyUI/app/assets/api
Luke Mino-Altherr a8d524a022 Remove mime_type from asset update API
Clients can no longer modify mime_type after asset creation via the
PUT /api/assets/{id} endpoint. This reduces the risk of mime_type
spoofing. The internal update_asset_hash_and_mime function remains
available for server-side use (e.g., enrichment).

Amp-Thread-ID: https://ampcode.com/threads/T-019cef5d-8d61-75cc-a1c6-2841ac395648
Co-authored-by: Amp <amp@ampcode.com>
2026-03-14 22:57:01 -04:00
..
routes.py Remove mime_type from asset update API 2026-03-14 22:57:01 -04:00
schemas_in.py Remove mime_type from asset update API 2026-03-14 22:57:01 -04:00
schemas_out.py Add clarifying comments for Asset/AssetReference naming and preview_id 2026-03-14 22:57:01 -04:00
upload.py Reject client-provided id, fix preview URLs, rename tags→total_tags 2026-03-14 22:57:01 -04:00