Skip to content

API Reference parrot.core.hooks.file_upload

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.core.hooks.file_upload

View source

File upload hook — HTTP POST/PUT endpoint for file ingestion.

Class FileUploadHook

Exposes an HTTP POST/PUT endpoint that accepts file uploads.

Validates MIME types and file names, saves files to a temporary directory, fires a HookEvent, then cleans up.

Parameter Type Default Description
config FileUploadHookConfig
**kwargs {}

Method FileUploadHook.start

start() -> None

Method FileUploadHook.stop

stop() -> None

Method FileUploadHook.setup_routes

setup_routes(app: Any) -> None

Parameter Type Default Description
app Any

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally