|
@@ -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()
|