feat(upload): add directory traversal, queue throttling, and upload config settings

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-26 23:11:44 +00:00
parent 5626f46880
commit 35d2ed05e9
6 changed files with 311 additions and 84 deletions
+16
View File
@@ -232,6 +232,22 @@ class Settings(BaseSettings):
description="Delay in seconds between each task submission when throttling in /processall",
)
# Client-side upload throttling settings (applied when uploading files via the web UI)
upload_concurrency: int = Field(
default=3,
description=(
"Maximum number of files uploaded simultaneously from the browser. "
"Limits parallel uploads to prevent API overload when dragging directories. Default: 3."
),
)
upload_queue_delay_ms: int = Field(
default=500,
description=(
"Delay in milliseconds between starting each upload slot when queue is active. "
"Staggers upload starts to smooth out server load. Default: 500 ms."
),
)
# Notification settings
notification_urls: Union[List[str], str] = Field(
default_factory=list,