The JCR-FTP Server represents the standard eXo service, operates as an FTP server with an access to a content stored in JCR repositories in the form of nt:file/nt:folder nodes or their successors. The client of an executed Server can be any FTP client. The FTP server is supported by a standard configuration which can be changed as required.
FTP includes the following configuration parameters:
<value-param>
<name>command-port</name>
<value>21</value>
</value-param>
The value of the command channel port. The value '21' is set by default.
When you have already some FTP servers installed in your system, this parameter needs to be changed (for example, 2121) to avoid conflicts or if the port is protected.
<value-param>
<name>data-min-port</name>
<value>52000</value>
</value-param>
<value-param>
<name>data-max-port</name>
<value>53000</value>
</value-param>
These two parameters indicate the minimal and maximal values of the range of ports respectively, used by the server. The usage of the additional data channel is required by the FTP - protocol, which is used to transfer the file content and the categories list. This range of ports should be free from listening by other server-programs.
<value-param>
<name>system</name>
<value>Windows_NT</value>
or
<value>UNIX Type: L8</value>
</value-param>
Types of formats of listing of catalogues which are supported.
<value-param>
<name>client-side-encoding</name>
<value>windows-1251</value>
or
<value>KOI8-R</value>
</value-param>
This parameter specifies the coding which is used for dialogue with the client.
<value-param>
<name>def-folder-node-type</name>
<value>nt:folder</value>
</value-param>
This parameter specifies the type of a node, when an FTP-folder is created.
<value-param>
<name>def-file-node-type</name>
<value>nt:file</value>
</value-param>
This parameter specifies the type of a node, when an FTP file is created.
<value-param>
<name>def-file-mime-type</name>
<value>application/zip</value>
</value-param>
The MIME type of a created file is chosen by using its file extention. In case a server cannot find the corresponding mime type, this value is used.
<value-param>
<name>cache-folder-name</name>
<value>../temp/ftp_cache</value>
</value-param>
The Path of the cache folder.
<value-param>
<name>upload-speed-limit</name>
<value>20480</value>
</value-param>
Restriction of the upload speed. It is measured in bytes.
<value-param>
<name>download-speed-limit</name>
<value>20480</value>
</value-param>
Restriction of the download speed. It is measured in bytes.
<value-param>
<name>timeout</name>
<value>60</value>
</value-param>
Define the value of a timeout.
<value-param>
<name>replace-forbidden-chars</name>
<value>true</value>
</value-param>
Indicate whether or not the forbidden characters must be replaced.
<value-param>
<name>forbidden-chars</name>
<value>:[]*'"|</value>
</value-param>
Define the list of forbidden characters.
<value-param>
<name>replace-char</name>
<value>_</value>
</value-param>
Define the character that will be used to replace the forbidden characters.