created: 20181002123907518 modified: 20250605000000000 tags: [[WebServer API]] title: WebServer API: Get File type: text/vnd.tiddlywiki Get the content of a static file. See [[using the integrated static file server|Using the integrated static file server]] ``` GET /files/ ``` Parameters: * ''pathname'' - URI encoded path to the file Headers: * ''Range'' - <<.from-version "5.3.7">> (optional) Request specific byte ranges using the format `bytes=start-end`. Supports partial content delivery for media streaming. Response: * 200 OK *> `Content-Type: ` (determined from file extension) *> `Content-Length: ` *> `Accept-Ranges: bytes` *> Body: complete file data * 206 Partial Content (when Range header is provided) *> `Content-Type: ` (determined from file extension) *> `Content-Length: ` *> `Content-Range: bytes -/` *> `Accept-Ranges: bytes` *> Body: requested byte range data * 403 Forbidden * 404 Not Found