提示:如在2015年1月9日前使用了的,请按照以下内容修改(之后的不用修改):
找到“\src\extensions\ossStorage\service\app_ossStorage.php”
在文件中找到- public function save($source, $filePath) {
- if (!$source || !$filePath || !$this->checkIfUploadToOss ()) return false;
- $filePath = $this->configs['attachPath'] ? $this->configs['attachPath'].'/'.$filePath : $filePath;
- $bool = $this->_uploadToOss($source, $filePath);
- if(!$bool) return false;
- return true;
- }
复制代码 把其中修改为- if(!$bool){
- return false;
- }
- else{
- WindFile::del($source);
- }
复制代码 |
|