Files
bbs/internal/ftp
Claude 2eb5424236 File areas, served by an FTP (FTPS) server
File areas hold files: records in the database, contents in files_dir
under the record's number, so no name a user gives becomes a path.
Callers browse them from the text BBS (F) and on 3270s (8): the files'
size, uploader, downloads, SHA-256 and where to fetch them; uploaders
and sysops edit descriptions and delete.

[ftp] runs an FTP server (fclairamb/ftpserverlib) whose file system is
the areas: / lists them, an area its files, nothing else exists.  Users
log in with their BBS name and password, through the BBS's own check
(fail delay, throttling by address).  They download anything, upload
new files into areas that take them (names checked, max_file_size and
a daily upload_quota, written to a temporary file and hashed before
they are recorded), and delete their own; overwriting, appending,
resumed uploads, renames, directories, SITE and MFMT are refused.
Active mode is off, data connections must come from the control
connection's address, and tls = required (the default) refuses USER
before AUTH TLS; implicit, optional and no exist, the last two with a
warning.  anonymous = yes lets anonymous download.  max_clients and
max_per_ip limit sessions.

bbs filearea add|del|list and bbs file add|list|del look after them;
bbs init makes an Uploads area.  Go 1.24 is needed now (the library's).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-10 17:46:02 +00:00
..