Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Files → upload_file_api_v1_files__post

AI-generated

Summary

Upload a file to the Open Web UI API by sending multipart/form-data including the file and its optional metadata.

Inputs

  • File (required) — The binary file content to upload.
  • File_metadata — Optional JSON object representing metadata about the file.
  • Skip Authentication — Whether to skip authentication; defaults to false, meaning authentication is required.

Output shape

a JSON object representing the uploaded file's server response

The operation sends a POST request to /api/v1/files/ with multipart/form-data containing the file and optional metadata. Authentication is required unless skipped explicitly.

Examples

Example 1: Uploading a file with metadata

Set 'File' to the binary data, optional 'File_metadata' to metadata JSON, ensure 'Skip Authentication' is false or unset.

Links

Discussion