Appearance
UploadKit 上传工具类
常用方法
| 方法名 | 说明 |
|---|---|
| String image(String url, String path) | 将网络图片,上传到服务器,并返回新路径 |
| void put(String path, String content) | 将文本内容推送到云存储上 |
| void put(String path, InputStream inputStream) | 将文本推送到私有云存储 |
| String get(String path) | 获取文件内容 |
| String getURL(String path) | 将附件路径,转换成临时授权后的可访问路径,有效期 10 分钟 |
| void remove(String path) | 删除指定文件 |
| void refresh(String path) | 刷新 CDN 文件缓存,由于 CDN 原理,不同节点间有 3-5 分钟延迟 |