dever 5 lat temu
rodzic
commit
85e39929e2
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      lib/Store/Core.php
  2. 1 1
      src/Save.php

+ 1 - 0
lib/Store/Core.php

@@ -315,6 +315,7 @@ class Core
 			}
 		}
 
+		$this->output['uploaded'] = true;
 		$this->output['status'] = 1;
 		$this->output['name'] = $this->data['file']['name'];
 		$this->output['fid'] = $this->id;

+ 1 - 1
src/Save.php

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