mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #12176] [MERGED] Support skipping ingestion and downloading files as attachments #61715
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12176
Author: @JunaidPinjari
Created: 3/29/2025
Status: ✅ Merged
Merged: 3/29/2025
Merged by: @tjbck
Base:
dev← Head:feat/file-upload-download-options📝 Commits (1)
a805e03Feat: Add optional ingest_file and as_attachment params to upload and download endpoints📊 Changes
1 file changed (+40 additions, -37 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+40 -37)📄 Description
devbranch.featChangelog Entry
Description
Adds two new query parameters to file upload and download endpoints to provide better control when using files in LLM-driven flows or pipelines.
Added
ingest_file(bool) to thePOST /filesendpoint — allows skipping ingestion and only storing the file. Defaults toTruefor backward compatibility.as_attachment(bool) toGET /files/{id}/content— allows returning file as download attachment when set toTrue.Additional Information
.txtfile via/files?ingest_file=falseand then returns a download link using/files/{id}/content?as_attachment=true.Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.