dever 6 年之前
父节点
当前提交
ffe082cfd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Save.php

+ 1 - 1
src/Save.php

@@ -24,7 +24,7 @@ class Save
 		//file_put_contents(DEVER_PATH . 'web/data/upload.txt', var_export($image, true)); 
 		if ($image['file']) {
 
-			if (is_array($image['file'])) {
+			if (isset($image['file'][0])) {
 				$send = $image;
 				foreach($image['file'] as $k => $v) {
 					$send['file'] = $v;