typecho-plugin-ossfile
typecho-plugin-ossfile copied to clipboard
OSS file upload plugin for typecho
新增byte流方式上传 $ossClient->putObject( ); 根据oss文档这个方法是上传bytes
文件无法删除
文件上传到阿里云oss后,删除附件及文章引用,无法同时删除OSS存储里的文件。 解决方法: 将deleteHandle函数中 $ossClient->deleteObject($options->bucket, $content['attachment']->path); 改为 $ossClient->deleteObject($options->bucket, substr($content['attachment']->path,1));
增加 byte 流写入内容的考虑 用于**XMLRPC接口**上传附件因为XMLRPC上传用的byte流写入数据 152行 ```php $result = $ossClient->uploadFile($options->bucket, substr($path,1), $uploadfile); ``` 改为 ```php if (isset($file['tmp_name'])) { $result = $ossClient->uploadFile($options->bucket, substr($path, 1), $uploadfile); } else { $result = $ossClient->putObject($options->bucket, substr($path,...
这个插件还能用吗?,需要怎么配置??