---
title: "Upload User File"
method: POST
path: "/api/v2/files/"
tags: ["Files"]
---

# Upload User File

`POST /api/v2/files/`

Upload a file for the current user and track it in the database.

## Query parameters

- `append` boolean

## Response `201`

Successful Response

- UploadFileResponse — File upload response schema.
  - `id` string, uuid, required
  - `name` string, required
  - `path` string, path, required
  - `size` integer, required
  - `provider` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-06** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API
- **2026-02-18** `191b57fc530b` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was removed from the API
- **2026-02-10** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API
- **2025-12-23** `b0ee9ddb8d9f` — 1 info
  - added the new optional `query` request parameter `append`
- **2025-10-16** `9bd3e81318d7` — 2 breaking, 4 warning, 2 info
  - the `file` request property contentMediaType changed from `application/octet-stream` to ``
  - the `file` request property format changed from no format to `binary`
  - deleted the `query` request parameter `append`
  - deleted the `query` request parameter `ephemeral`
  - …4 more

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v2/files/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/0be341779529/schema)
