Browse Source

Add upload path

HonorLee 7 years ago
parent
commit
a48fbe4499
2 changed files with 3 additions and 1 deletions
  1. 1 0
      config.js
  2. 2 1
      system/core.js

+ 1 - 0
config.js

@@ -3,6 +3,7 @@ global.Config = {
     SessionExpire : 30,
     //Asset path
     asset_path  : 'asset',
+    upload_path : 'asset/upload',
     //WhiteList
     BlackList : {},
     //Mysql config

+ 2 - 1
system/core.js

@@ -14,7 +14,8 @@ global.Core.Path = {
     Temp        : ROOTPATH + '/temp',
     Session     : ROOTPATH + '/temp/session',
     Log         : ROOTPATH + '/log',
-    Asset       : ROOTPATH + '/' + Config.asset_path
+    Asset       : ROOTPATH + '/' + Config.asset_path,
+    Upload      : ROOTPATH + '/' + Config.upload_path
 };
 
 //Global Extension Require