dever 6 년 전
부모
커밋
52fe890bdd
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/View.php

+ 9 - 0
src/View.php

@@ -14,7 +14,16 @@ class View
 {
     public function getFileName()
     {
+        $image['file']  = Dever::input('file');
+        $image['key']   = Dever::input('key');
         
+        //file_put_contents(DEVER_PATH . 'web/data/upload.txt', var_export($image, true)); 
+        if ($image['file']) {
+            $handle = new Handle($image);
+
+            $this->output = $handle->copy();
+            unset($this->output['file']);
+        }
     }
     
     public function files()