ascii-mode NcFTPd general.cf file configuration
Don't forget to restart NcFTPd after modifying the general.cf file.

The FTP protocol allows for files to be transferred verbatim (in "binary" mode), and in ASCII (text) mode. Unfortunately, what consitutes "text" varies from operating system to operating system. For MS-DOS and Microsoft Windows, the ending of a line of text is delimited by a carriage return (CR) character and a line feed (LF) character, forming "CRLF" line endings. For UNIX systems, a line ending requires just a single LF, and there are other operating systems that use just a single CR.

To handle these varying text formats, the FTP protocol specifies that clients and servers convert their text to a single network text format, and upon receiving the file, convert from the network text format to the local format. The network text format is defined as CRLF line endings. For example, with a UNIX client sending a file in ASCII mode to a UNIX server, the client first converts its text file from LF to network text's CRLF format, sends this data to the server, which then converts from network text's CRLF back to LF before storing the file.

NcFTPd features different algorithms for text conversion.

Examples:

Recommendation:

Up
Previous: allowed-site-commands NcFTPd Home Next: ascii-size-mode