16 lines
783 B
Markdown
16 lines
783 B
Markdown
# Files panel
|
|
|
|
The chat Files panel lists and navigates the active session's server working
|
|
directory, with filtering, hidden files, sorting, and list/grid presentation
|
|
(`app/lib/features/chat/files/`). The follow-up slice adds file opening, viewing,
|
|
downloading and image thumbnails.
|
|
|
|
Server side:
|
|
|
|
- Directory listings (`list_directory`) include file `size` (bytes) and RFC3339 UTC
|
|
`modified` metadata for files; directories carry neither.
|
|
- `GET /files?path=...` serves one regular file for the client files panel. Paths may be
|
|
absolute or `~`-prefixed and are resolved through the operator home directory; cleaned
|
|
paths and symlinks must stay inside that home subtree. Directories, special files and
|
|
escape paths are refused. Add `download=1` for attachment disposition.
|