summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-16 23:03:03 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-16 23:03:03 +0200
commitd60e700640c2a67f74acff090b94d06117bfc203 (patch)
treed635f7b54dcd22a9ab135905dec36d868396d9ac /user_guide_src
parent81c3208b79cca353b27ecd4bdf00d4b6e7c91b2c (diff)
Add an option to disable MIME detection in the Upload library (issue #1494)
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/libraries/file_uploading.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/user_guide_src/source/libraries/file_uploading.rst b/user_guide_src/source/libraries/file_uploading.rst
index 414d84f0b..65cd5c722 100644
--- a/user_guide_src/source/libraries/file_uploading.rst
+++ b/user_guide_src/source/libraries/file_uploading.rst
@@ -215,6 +215,9 @@ Preference Default Value Options Descripti
that can not be discerned by the person uploading it.
**remove_spaces** TRUE TRUE/FALSE (boolean) If set to TRUE, any spaces in the file name will be converted to
underscores. This is recommended.
+**detect_mime** TRUE TRUE/FALSE (boolean) If set to TRUE, a server side detection of the file type will be
+ performed to avoid code injection attacks. DO NOT disable this option
+ unless you have no other option as that would cause a security risk.
============================ ================= ======================= ======================================================================
Setting preferences in a config file