---
title: "file/{DirName}/**"
method: GET
path: "/api/file/{DirName}/**"
tags: ["file"]
---

# file/{DirName}/**

`GET /api/file/{DirName}/**`

Downloads the specified file from a media directory. Supports optional query params: `?tail=N` (return last N lines), `?play=1` (set playback content type), `?attach=1` (force attachment download for images).

## Response `200`

The File Contents

## Other responses

- `404` — File <path> does not exist.

## Changes

- **2026-05-13** `34a577bdabff` — 2 breaking, 3 warning
  - removed the media type `application/octet-stream` for the response with the status `200`
  - removed the media type `text/plain` for the response with the status `404`
  - deleted the `query` request parameter `attach`
  - deleted the `query` request parameter `play`
  - …1 more

[Change history](https://skmtc.dev/falconchristmas/apis/fpp-api/changes/api/file/:DirName/**/get.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/34a577bdabff/schema)
