783 B
783 B
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 filesize(bytes) and RFC3339 UTCmodifiedmetadata 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. Adddownload=1for attachment disposition.