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

# Get file contents

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

Downloads the specified file from a media directory.

## Query parameters

- `tail` integer
- `play` boolean
- `attach` boolean

## Response `200`

File contents; content type varies by file extension and query params

## Other responses

- `404` — File not found

---

[API](https://skmtc.net/falconchristmas/apis/fpp-api.md) · [All operations](https://skmtc.net/falconchristmas/apis/fpp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/falconchristmas/fpp-api/versions/167593eed748/schema)
