---
title: "Upload file to directory"
method: POST
path: "/api/file/{DirName}/{Name}"
tags: ["file"]
---

# Upload file to directory

`POST /api/file/{DirName}/{Name}`

Uploads a file to the specified media directory.

## Query parameters

- `bs` integer
- `sb` integer

## Response `200`

File uploaded successfully

- object

## Changes

- **2026-05-14** `5ae08fa1c880` — 2 info
  - added the new optional `query` request parameter `bs`
  - added the new optional `query` request parameter `sb`
- **2026-05-13** `34a577bdabff` — 2 warning
  - deleted the `query` request parameter `bs`
  - deleted the `query` request parameter `sb`

[Change history](https://skmtc.dev/falconchristmas/apis/fpp-api/changes/api/file/:DirName/:Name/post.md)

---

[API](https://skmtc.dev/falconchristmas/apis/fpp-api.md) · [All operations](https://skmtc.dev/falconchristmas/apis/fpp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/falconchristmas/fpp-api/revisions/2d744b175449/schema)
