Skip to content

Commit acef725

Browse files
authored
Merge pull request #277 from dromara/dev
Dev
2 parents efe25a3 + 266f7b5 commit acef725

File tree

21 files changed

+187
-36
lines changed

21 files changed

+187
-36
lines changed

.gitee/ISSUE_TEMPLATE/config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 官方文档
4+
url: https://x-file-storage.xuyanwu.cn/
5+
about: 提供使用指南、教程、功能使用、介绍和常见问题解答
6+
- name: 常见问题
7+
url: https%3A%2F%2Fx-file-storage.xuyanwu.cn%2F%23%2F%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98
8+
about: 提供常见问题解答
9+
- name: 加入QQ群 515706495
10+
url: "https%3A%2F%2Fjq.qq.com%2F%3F_wv%3D1027%26k%3DeGfeNqka"
11+
about: 一起交流

.gitee/ISSUE_TEMPLATE/feature.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: 功能建议
2+
description: 对本项目提出一个功能建议
3+
title: "[功能建议]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
感谢提出功能建议,我们将仔细考虑!
10+
- type: textarea
11+
id: related-problem
12+
attributes:
13+
label: 你的功能建议是否和某个问题相关?
14+
description: 清晰并简洁地描述问题是什么,例如,当我...时,我总是感到困扰。
15+
validations:
16+
required: false
17+
- type: textarea
18+
id: desired-solution
19+
attributes:
20+
label: 你希望看到什么解决方案?
21+
description: 清晰并简洁地描述你希望发生的事情。
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: alternatives
26+
attributes:
27+
label: 你考虑过哪些替代方案?
28+
description: 清晰并简洁地描述你考虑过的任何替代解决方案或功能。
29+
validations:
30+
required: false
31+
- type: textarea
32+
id: additional-context
33+
attributes:
34+
label: 你有其他上下文或截图吗?
35+
description: 在此处添加有关功能请求的任何其他上下文或截图。
36+
validations:
37+
required: false
38+
- type: checkboxes
39+
attributes:
40+
label: 意向参与贡献
41+
options:
42+
- label: 我有意向参与具体功能的开发实现并将代码贡献回到上游社区
43+
required: false

.gitee/ISSUE_TEMPLATE/question.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: 问题反馈
2+
description: 在使用时遇到一些问题
3+
title: "[问题反馈]: "
4+
labels: ["question"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
感谢对项目的支持与关注。在提出问题之前,请确保你已查看相关开发或使用文档:
10+
- [官方文档](https://x-file-storage.xuyanwu.cn/)
11+
- [常见问题](https://x-file-storage.xuyanwu.cn/#/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
12+
- type: checkboxes
13+
attributes:
14+
label: 这个问题是否已经存在?
15+
options:
16+
- label: 我已经搜索过现有的问题 (https://gitee.com/../../issues)
17+
required: true
18+
- type: textarea
19+
attributes:
20+
label: 相关依赖及版本号
21+
description: 请详细输入用到的相关依赖及版本号
22+
value: |
23+
X File Storage 版本号:
24+
SpringBoot 版本号:
25+
Solon 版本号:
26+
JVM 版本号:
27+
其它依赖的名称及版本号:
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: 配置文件
33+
description: 输入你的配置文件,IP、密钥等使用 xxx 代替
34+
value: |
35+
```yaml
36+
# 在此输入配置文件
37+
38+
```
39+
validations:
40+
required: true
41+
- type: textarea
42+
attributes:
43+
label: 复现代码
44+
description: 请详细告诉我们如何复现你遇到的问题,如涉及代码,可提供一个最小代码示例,并使用反引号```附上它
45+
placeholder: |
46+
1. ...
47+
2. ...
48+
3. ...
49+
validations:
50+
required: true
51+
- type: textarea
52+
attributes:
53+
label: 预期结果
54+
description: 请告诉我们你预期会发生什么。
55+
validations:
56+
required: true
57+
- type: textarea
58+
attributes:
59+
label: 实际结果或详细的报错信息
60+
description: 请告诉我们实际发生了什么。
61+
validations:
62+
required: true
63+
- type: textarea
64+
attributes:
65+
label: 截图或视频
66+
description: 如果可以的话,上传任何关于 bug 的截图。
67+
value: |
68+
[在这里上传图片]

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,13 @@ Gitee:https://gitee.com/dromara/x-file-storage
5656

5757
这里是简要的更新记录,查看 [详细的更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录)
5858

59+
`2.2.1` 修复某些情况下哈希计算错误的问题、七牛云 Kodo 预签名 URL 无法使用的问题 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_221)
60+
<br />
5961
`2.2.0` 修复大量问题,新增获取文件、列举文件,重构预签名 URL 支持客户端上传、下载、删除等操作,新增 Solon 插件,优化手动分片上传等功能,详情查看 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_220)
6062
<br />
6163
`2.1.0` 修复大量问题,新增存储平台 FastDFS 和 Azure Blob Storage,新增复制、移动(重命名)文件,手动分片上传(断点续传)和计算哈希等功能,详情查看 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_210)
6264
<br />
6365
`2.0.0` 捐赠至 [dromara](https://dromara.org/zh) 开源社区,更改项目名、包名,优化项目结构、支持 Metadata 元数据等,从旧版升级需要注意,详情查看 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_200)
64-
<br />
65-
`1.0.3` 修复了 FileStorageClientFactory 未自动加载等问题,查看 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_103)
66-
<br />
67-
`1.0.2` 修复了华为云 OBS 未加载的问题,查看 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_102)
68-
<br />
69-
`1.0.1` 修复了 MultipartFile 无法正确获取文件名等问题,查看 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_101)
70-
<br />
71-
`1.0.0` 包含了大量功能更新与问题修复,例如解决了内存占用过大问题,支持大文件上传、 [脱离 SpringBoot 单独使用](https://x-file-storage.xuyanwu.cn/#/脱离SpringBoot单独使用) 等,AmazonS3 和 GoogleCloudStorage 存储平台配置名称与之前版本不兼容,查看 [更新记录](https://x-file-storage.xuyanwu.cn/#/更新记录?id=_100)
7266

7367
-------
7468

@@ -98,7 +92,7 @@ Gitee:https://gitee.com/dromara/x-file-storage
9892
<dependency>
9993
<groupId>org.dromara.x-file-storage</groupId>
10094
<artifactId>x-file-storage-spring</artifactId>
101-
<version>2.2.0</version>
95+
<version>2.2.1</version>
10296
</dependency>
10397
<!-- 引入 阿里云 OSS SDK,如果使用其它存储平台,就引入对应的 SDK -->
10498
<dependency>

docs/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,13 @@ Gitee:https://gitee.com/dromara/x-file-storage
5757

5858
这里是简要的更新记录,查看 [详细的更新记录](更新记录)
5959

60+
`2.2.1` 修复某些情况下哈希计算错误的问题、七牛云 Kodo 预签名 URL 无法使用的问题 [更新记录](更新记录?id=_221)
61+
<br />
6062
`2.2.0` 修复大量问题,新增获取文件、列举文件,重构预签名 URL 支持客户端上传、下载、删除等操作,新增 Solon 插件,优化手动分片上传等功能,详情查看 [更新记录](更新记录?id=_220)
6163
<br />
6264
`2.1.0` 修复大量问题,新增存储平台 FastDFS 和 Azure Blob Storage,新增复制、移动(重命名)文件,手动分片上传(断点续传)和计算哈希等功能,详情查看 [更新记录](更新记录?id=_210)
6365
<br />
6466
`2.0.0` 捐赠至 [dromara](https://dromara.org/zh) 开源社区,更改项目名、包名,优化项目结构、支持 Metadata 元数据等,从旧版升级需要注意,详情查看 [更新记录](更新记录?id=_200)
65-
<br />
66-
`1.0.3` 修复了 FileStorageClientFactory 未自动加载等问题,查看 [更新记录](更新记录?id=_103)
67-
<br />
68-
`1.0.2` 修复了华为云 OBS 未加载的问题,查看 [更新记录](更新记录?id=_102)
69-
<br />
70-
`1.0.1` 修复了 MultipartFile 无法正确获取文件名等问题,查看 [更新记录](更新记录?id=_101)
71-
<br />
72-
`1.0.0` 包含了大量功能更新与问题修复,例如解决了内存占用过大问题,支持大文件上传、 [脱离 SpringBoot 单独使用](脱离SpringBoot单独使用) 等,AmazonS3 和 GoogleCloudStorage 存储平台配置名称与之前版本不兼容,查看 [更新记录](更新记录?id=_100)
7367

7468
-------
7569

docs/在Solon中使用.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<dependency>
1111
<groupId>org.dromara.x-file-storage</groupId>
1212
<artifactId>x-file-storage-solon</artifactId>
13-
<version>2.2.0</version>
13+
<version>2.2.1</version>
1414
</dependency>
1515
```
1616

docs/基础功能.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,6 @@ result.getFileList().forEach(info -> log.info("文件:{}", info));
575575
log.info("列举文件完成,共 {} 个文件", result.getFileList().size());
576576
log.info("列举文件全部结果:{}", result);
577577

578-
//列表是否被截断,就是当前目录下还有其它文件或目录超出最大数量未被列举
579-
log.info("列表是否被截断:{}", result.getIsTruncated());
580-
log.info("下次列举的起始位置:{}", result.getNextMarker());
581578

582579
//其它更多参数
583580
ListFilesResult result2 = fileStorageService.listFiles()
@@ -586,6 +583,10 @@ ListFilesResult result2 = fileStorageService.listFiles()
586583
.setFilenamePrefix("abc") // 文件名前缀
587584
.setMarker("123456") //列举的起始位置,从上一次列举结果中获取
588585
.listFiles();
586+
587+
//列表是否被截断,就是当前目录下还有其它文件或目录超出最大数量未被列举
588+
log.info("列表是否被截断:{}", result2.getIsTruncated());
589+
log.info("下次列举的起始位置:{}", result2.getNextMarker());
589590
```
590591

591592
## 下载

docs/快速入门.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<dependency>
1212
<groupId>org.dromara.x-file-storage</groupId>
1313
<artifactId>x-file-storage-spring</artifactId>
14-
<version>2.2.0</version>
14+
<version>2.2.1</version>
1515
</dependency>
1616
```
1717

@@ -97,6 +97,13 @@
9797
<artifactId>aws-java-sdk-s3</artifactId>
9898
<version>1.12.429</version>
9999
</dependency>
100+
101+
<!-- 如果出现 okhttp 版本问题,可以尝试引入以下版本,没问题则无需引入-->
102+
<dependency>
103+
<groupId>com.squareup.okhttp3</groupId>
104+
<artifactId>okhttp</artifactId>
105+
<version>4.12.0</version>
106+
</dependency>
100107
```
101108

102109
#### **FTP**

docs/更新记录.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
-------
44

5+
## 📦2.2.1 :id=_221
6+
2024-07-18
7+
- 修复某些情况下哈希计算错误的问题
8+
- 修复七牛云 Kodo 预签名 URL 无法使用的问题
9+
10+
-------
11+
512
## 📦2.2.0 :id=_220
613
2024-07-02
714
- 新增获取文件

docs/脱离SpringBoot单独使用.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<dependency>
99
<groupId>org.dromara.x-file-storage</groupId>
1010
<artifactId>x-file-storage-core</artifactId>
11-
<version>2.2.0</version>
11+
<version>2.2.1</version>
1212
</dependency>
1313
```
1414

0 commit comments

Comments
 (0)