Commit 6e467d5c by 冷斌

fix bug

parent 2da2832f
......@@ -254,8 +254,6 @@ class Upload {
$driver = $driver ? : ($this->driver ? : C('FILE_UPLOAD_TYPE'));
$config = $config ? : ($this->driverConfig ? : C('UPLOAD_TYPE_CONFIG'));
$class = strpos($driver,'\\')? $driver : 'Think\\Upload\\Driver\\'.ucfirst(strtolower($driver));
var_dump($class, $config);
die;
$this->uploader = new $class($config);
if(!$this->uploader){
E("不存在上传驱动:{$name}");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment