File transfer
Move members, streams and save files.
Use the FTP port assigned to your hosted system, or start a standalone local listener.
Connect to the correct system
The hosted dashboard supplies an FTP control port distinct from TN5250 and HTTP. Connect to that port using QSECOFR or another explicitly provisioned IBM i profile and its system password, not your platform account password. Browser, TN5250 and FTP connections share the account's session allowance; even an unsigned connection occupies a lease.
Choose passive mode. The operator must open the assigned passive data range as well as the control port, and configure PASV's public IPv4 address behind NAT. EPSV uses the control hostname and chosen data port. A successful login with a hanging listing usually needs a data-route check.
Upload and compile a source member
Save the COBOL example from the first-program guide locally
as hello.cbl. Connect with a client that supports quote, ASCII mode and passive transfers
(for example, ftp -p 127.0.0.1 PORT, replacing PORT with your assigned port).
After login, run:
quote rcmd CRTLIB LIB(FTPDEMO)
quote rcmd CRTSRCPF FILE(FTPDEMO/QCBLLESRC) RCDLEN(112)
quote site namefmt 0
cd FTPDEMO
ascii
put hello.cbl QCBLLESRC.HELLO
quote rcmd CRTBNDCBL PGM(FTPDEMO/HELLO) SRCFILE(FTPDEMO/QCBLLESRC) SRCMBR(HELLO)
quote rcmd CALL PGM(FTPDEMO/HELLO)
get QCBLLESRC.HELLO hello-copy.cbl
Use a fresh FTPDEMO library. Source files must already exist; STOR can create a member and generates sequence/date fields. Overlength lines or failed conversions preserve the previous member. RCMD runs CL in an FTP server job and retains its job log/spool; program output is not returned as an FTP data stream. QUOTE is a client command that sends RCMD or SITE to the server.
Stream files and paths
quote site namefmt 1
cd /tmp
binary
put hello.cbl hello.txt
get hello.txt hello-roundtrip.cbl
NAMEFMT 0 uses library/file.member names. NAMEFMT 1 accepts IFS paths and
/QSYS.LIB/LIBRARY.LIB/FILE.FILE/MEMBER.MBR. Binary stream transfers preserve bytes;
ASCII uses CCSID conversion and may trim record blanks. SITE TRIM controls outgoing blanks;
SITE LISTFMT selects supported listing columns. General structured/binary member transfer is unsupported.
Move a save container
Create and fill QGPL/BACKUP using the save guide, then use:
quote site namefmt 1
binary
get /QSYS.LIB/QGPL.LIB/BACKUP.FILE backup.webisav
put backup.webisav /QSYS.LIB/QGPL.LIB/IMPORTED.SAVF
The .SAVF path can create a missing save file after validation. An existing .FILE path selects a save file already created with CRTSAVF. The bytes remain emulator .webisav, never native IBM SAVF. Run DSPSAVF and RSTLIB/RSTOBJ after upload; file transfer itself does not restore a library.
Start a standalone local server
# zsh: read a password without echo or a literal secret in shell history
read -s 'WEBI_FTP_PASSWORD?FTP profile password: '
export WEBI_FTP_PASSWORD
node tools/ftp-server.mjs --store ./var/ftp --port 2121
This starts a separate persistent machine and verifies its existing QSECOFR profile against
the supplied environment password. Use --user for another existing profile.
It does not connect to your browser's IndexedDB or a different launcher's machine; give each
running process its own store. Use --help for passive ranges, NAT and deadlines.
The adapter supports bounded active/passive transfers, append, list, size/time queries,
ABOR, basic IFS directory operations, and explicit and implicit FTPS. Add
--tls-cert and --tls-key to offer AUTH TLS, --implicit-port
for a TLS-from-first-byte listener, and --require-tls to refuse clear sessions and
force PROT P. The hosted service offers explicit FTPS only. Resume/REST, rename, MLSD,
client-certificate authentication, anonymous FTP, full authority enforcement and many IBM FTP
options are unsupported. See
remote access, hosted setup and the
FTP adapter notes in the paid package for protocol details; the current hosted integration
supersedes that older note's missing-host-hook limitation.