The Security tab of the KTML
4 server behavior allows you to define what types of files are
allowed for upload, as well as other security-related settings:
To configure this tab, follow the instructions below:
In the Allowed document types list, all the document file extensions that can be uploaded are displayed. You can add or remove extensions by using the Plus (+) and Minus (-) buttons on top of the list:
To add a new extension to the list, click
the Plus (+) button. A dialog box will open
where you can enter the extension:
Enter the extension: use a *. prefix to symbolize all files with that extension, and then enter the extension (e.g. *.doc).
Click the OK button to close the dialog box and add the new entry.
Click the Cancel button to close the user interface and abandon the changes.
Click the Help button to open this manual page.
To remove an extension, select it in the list and click the Minus (-) button.
In the Allowed media file types list, all the media file extensions that can be uploaded are displayed. Similar to the Allowed document types list, you can add or remove entries by clicking on the Plus (+) and Minus (-) buttons on top of the list.
In the Maximum file size
text box enter the maximum size (in kB) an uploaded file can have. Any
files larger than the specified size cannot be uploaded.
Note: KTML 4
allows you to define, in a configuration file, the maximum dimensions
(width and height) an uploaded image can have. The default values are
500 pixels for the maximum width
and 350 pixels for the maximum
height. Read more about this in the API documentation.
According to this feature, if the checking-the-size test when uploading
images is passed, another verification is done, namely the image dimensions.
If at least one of them is bigger than the maximum set in the configuration
file, the image will be boxed-resized (proportionally made smaller to
fit in the area outlined by the maximum dimensions).
If the resize operation is not possible (there is no support for it),
an error will be thrown and the image file will be deleted.
In the Hide folders
text box enter the names of the folders that must not be displayed in
the Remote
File Explorer window. Folder names must be separated by a comma.
E.g. Enter "Personal, svn, img", without the quotes, to exclude
these folders from listing in the Remote Explorer.
Note: The Hide folders option is not
available in the Lite version
of the editor.
In the Strip server location drop-down menu select whether to display the full path to uploaded files or not, in the link to download the file.
Click on the Advanced tab to continue with configuring the KTML 4 server behavior.