mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Channel-scoped file browser reachable via right-click on a channel: navigate directories, create folders, rename/delete, and upload/download files. Backed by tsclientlib's built-in download_file/upload_file (which already handles the ftinitdownload/ftinitupload -> TCP data-port dance), plus raw ftgetfilelist/ftcreatedir/ftdeletefile/ftrenamefile commands for everything else. Downloads/uploads are buffered whole in memory and base64-relayed over the existing stdin/WebSocket text protocol - fine for a channel filebase's typical file sizes, not meant for huge transfers. Verified against the real server: upload/list/download round-trip reaches the server correctly (list succeeds, upload correctly surfaces the guest account's missing permission via the new FiletransferFailed handling instead of hanging or crashing). Demo mode gets a small in-memory per-channel filesystem so the file browser is fully interactive in the GitHub Pages demo too.