v21

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-032560235.1 KB
file

Get file contents

Downloads the specified file from a media directory.

get/api/file/{DirName}/**

Query parameters

tailinteger

Return the last N lines instead of the whole file

playboolean

When 1, set a playback-oriented content type instead of a forced attachment

attachboolean

When 1, force attachment download for images

Response

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