litestar-file-uploads

Installation
SKILL.md

File Uploads

Execution Workflow

  1. Decide whether the endpoint truly needs multipart file transport.
  2. Choose the input shape: single UploadFile, typed multipart model, dict[str, UploadFile], or list[UploadFile].
  3. Declare multipart explicitly with Body(media_type=RequestEncodingType.MULTI_PART).
  4. Validate filename, content type, size expectations, and field layout before expensive processing.
  5. Stream or hand off large files to storage/services without unbounded memory use.
  6. Keep upload parsing and validation at the transport edge; move persistence and scanning into services.

Core Rules

Installs
24
GitHub Stars
6
First Seen
Mar 2, 2026
litestar-file-uploads — alti3/litestar-skills