Browse Source

add comment

Yuki Takei 6 years ago
parent
commit
e44a6001f9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/server/service/config-loader.js

+ 3 - 1
src/server/service/config-loader.js

@@ -140,7 +140,9 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
     ns:      'crowi',
     key:     'gridfs:totalLimit',
     type:    TYPES.NUMBER,
-    default: null,
+    default: null, // set null in default for backward compatibility
+    //                cz: Newer system respects FILE_UPLOAD_TOTAL_LIMIT.
+    //                    If the default value of MONGO_GRIDFS_TOTAL_LIMIT is Infinity, the system can't distinguish between "not specified" and "Infinity is specified".
   },
   FORCE_WIKI_MODE: {
     ns:      'crowi',