dever 1 year ago
parent
commit
d2d24bfb28
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/Store/Core.php

+ 3 - 1
lib/Store/Core.php

@@ -366,9 +366,11 @@ class Core
 			}
 			}
 		}
 		}
 
 
+		$this->output['ext'] = $this->ext;
 		$this->output['uploaded'] = true;
 		$this->output['uploaded'] = true;
 		$this->output['status'] = 1;
 		$this->output['status'] = 1;
-		$this->output['name'] = $this->data['file']['name'];
+		$this->output['name'] = $this->name;
+		$this->output['source_name'] = $this->data['file']['name'];
 		$this->output['fid'] = $this->id;
 		$this->output['fid'] = $this->id;
 		if ($this->limit) {
 		if ($this->limit) {
 			$this->output['width'] = $this->limit[0];
 			$this->output['width'] = $this->limit[0];