|
@@ -63,7 +63,7 @@ class Upload extends Base
|
|
|
$this->uptype = $this->getUploadType();
|
|
|
$this->extend = pathinfo($file->getInfo('name'), PATHINFO_EXTENSION);
|
|
|
$name = File::name($file->getPathname(), $this->extend, '', 'md5_file');
|
|
|
- $info = File::instance($this->uptype)->save(date('Y-m-d H:i:s').'/'.$name, file_get_contents($file->getRealPath()), $this->safe);
|
|
|
+ $info = File::instance($this->uptype)->save(date('Y-m-d').'/'.$name, file_get_contents($file->getRealPath()), $this->safe);
|
|
|
if (is_array($info) && isset($info['url'])) {
|
|
|
$url = $this->safe ? $name : $info['url'];
|
|
|
$this->success('上传成功',$url);
|