dever 5 years ago
parent
commit
621918c0a0
2 changed files with 4 additions and 2 deletions
  1. 3 2
      database/file.php
  2. 1 0
      lib/Store/Core.php

+ 3 - 2
database/file.php

@@ -222,12 +222,13 @@ return array
 	# 更新表结构
 	'alter' => array
 	(
-		2 => array
+		3 => array
 		(
 			array('update', 'upload', 'upload', 'int-11 1 所属资源配置'),
+			array('update', 'size', 'size', 'varchar-100  文件大小'),
 			//array('add', 'config', 'config', 'int-11 1 配置'),
 		),
-		'version' => 2,
+		'version' => 3,
 	),
 
 	'manage' => array

+ 1 - 0
lib/Store/Core.php

@@ -198,6 +198,7 @@ class Core
 		        $this->base64 = true;
 			} else {
 				$name = urldecode($this->data['file']);
+				$file = $name;
 			}
 
 			$this->data['file'] = array();