Configure file uploading

KTML allows uploading files of various types directly from the web interface. The default top folder under which the uploaded files are stored is <your site>\ktml\includes\uploads\, but it can be changed by editing the KTML control properties (in Dreamweaver, Visual Studio or directly in the page code).

In order for the file upload to work you must configure the application server to allow file uploads, and the file system to allow the web server write files in the desired folder.

To use the file uploading capability of KTML, it must be allowed by both the application server, and the operating system:

  1. The application server must allow file uploads. Learn how to configure file upload on:

  2. The folder where files are uploaded must have the correct permissions, so that files can be saved.

Configure the folder access rights

All files uploaded through the KTML 4 interface will be stored directly, or in sub-folders of the path specified when configuring the control. By default this folder is located in the ktml folder, in ktml/includes/uploads. In order for files to be saved in the folder you must grant the web server permissions to write inside the folder. Instructions depend on the web server's operating system and file system:

  1. Microsoft Windows using a FAT or FAT-32 file system: this file system does not allow defining access rights on individual folders, and as such you do not have to configure anything else. File uploading already works.

  2. Microsoft Windows using a NTFS file system: this file system allows defining access rights for individual folders, and you must explicitly allow the web serve to write files:

  3. Mac OS, *NIX (this includes UNIX and all flavours of Linux): you must set the correct rights for the folder