Resource Type Options
For each resource type you may set several options to configure its behavior.
-
url
anddirectory
– define the base URL address and the server directory used to handle and publish the files for this resource type. They follow the same rules as defined in the [[{{{link}}}|Quick Start]] section for thebaseUrl
andbaseDir
settings.
-
maxSize
– is the maximum size of the uploaded image defined in bytes. You may also use shorthand notation. Available options are:G
,M
,K
(case insensitive). Remember that1M
equals 1048576 bytes (one Megabyte),1K
equals 1024 bytes (one Kilobyte),1G
equals 1 Gigabyte.- Example
- {{{example}}}
You can use the following settings to list the file extensions that can be upload to the server:
-
allowedExtensions
– the file extensions you wish to be allowed for upload with CKFinder. If left empty, onlydeniedExtensions
is used to check uploads. TheNO_EXT
value can be used for enabling files without an extension. -
deniedExtensions
– the file extensions you do not wish to be uploaded with CKFinder. TheNO_EXT
value can be used for denying files without an extension.
Important: It is recommended to always use the
allowedExtensions
setting, in favor of deniedExtensions
. If you leave allowedExtensions
empty and you add an extension to the deniedExtensions
list, for example pdf
, the settings will allow the upload of all other files except the files with the pdf
extension. This approach is not a good way to secure your server from unwanted uploads. The best way is to put all of the preferred extensions in the allowedExtensions
list. This is the only way to effectively secure your server from hacker attacks.