---
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
- `ephemeral` boolean

## Response `201`

Successful Response

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

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-13** `acd160326a88` — 1 breaking, 1 info
  - the `path` response's property type/format changed from `string`/`path` to `string`/`` for status `201`
  - added the new optional `query` request parameter `ephemeral`
- **2026-03-12** `830c31118215` — 1 breaking, 3 info
  - the `file` request property contentMediaType changed from `` to `application/octet-stream`
  - the `file` request property type/format was generalized from `string`/`binary` to `string`/``
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **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

[Full history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v2/files/post~2.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/22962dc5e81b/schema)
