Skip to content

Commit

Permalink
Merge pull request #102 from 1171736840/dev
Browse files Browse the repository at this point in the history
Release 1.0.1
  • Loading branch information
1171736840 authored Aug 8, 2023
2 parents 9fea859 + 525bed3 commit 9a7d054
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 13 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ Amazon S3、GoogleCloud Storage、金山云 KS3、美团云 MSS、京东云 OSS

后续即将支持 Samba、NFS

最新版 `1.0.0` 包含了大量功能更新与问题修复,例如解决了内存占用过大问题,支持大文件上传、 [脱离 SpringBoot 单独使用](https://spring-file-storage.xuyanwu.cn/#/脱离SpringBoot单独使用) 等,AmazonS3 和 GoogleCloudStorage 存储平台配置名称与之前版本不兼容,查看 [更新记录](https://spring-file-storage.xuyanwu.cn/#/更新记录?id=1.0.0)
`1.0.1` 修复了 MultipartFile 无法正确获取文件名等问题,查看 [更新记录](https://spring-file-storage.xuyanwu.cn/#/更新记录?id=101)
<br />
`1.0.0` 包含了大量功能更新与问题修复,例如解决了内存占用过大问题,支持大文件上传、 [脱离 SpringBoot 单独使用](https://spring-file-storage.xuyanwu.cn/#/脱离SpringBoot单独使用) 等,AmazonS3 和 GoogleCloudStorage 存储平台配置名称与之前版本不兼容,查看 [更新记录](https://spring-file-storage.xuyanwu.cn/#/更新记录?id=100)

> 通过 WebDAV 连接到 Alist 后,可以使用百度网盘、天翼云盘、阿里云盘、迅雷网盘等常见存储服务,查看 [Alist 支持的存储平台](https://alist-doc.nn.ci/docs/webdav)
Expand Down
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ Amazon S3、GoogleCloud Storage、金山云 KS3、美团云 MSS、京东云 OSS

后续即将支持 Samba、NFS

最新版 `1.0.0` 包含了大量功能更新与问题修复,例如解决了内存占用过大问题,支持大文件上传、 [脱离 SpringBoot 单独使用](脱离SpringBoot单独使用) 等,AmazonS3 和 GoogleCloudStorage 存储平台配置名称与之前版本不兼容,查看 [更新记录](更新记录?id=1.0.0)
`1.0.1` 修复了 MultipartFile 无法正确获取文件名等问题,查看 [更新记录](更新记录?id=101)
<br />
`1.0.0` 包含了大量功能更新与问题修复,例如解决了内存占用过大问题,支持大文件上传、 [脱离 SpringBoot 单独使用](脱离SpringBoot单独使用) 等,AmazonS3 和 GoogleCloudStorage 存储平台配置名称与之前版本不兼容,查看 [更新记录](更新记录?id=100)

> 通过 WebDAV 连接到 Alist 后,可以使用百度网盘、天翼云盘、阿里云盘、迅雷网盘等常见存储服务,查看 [Alist 支持的存储平台](https://alist-doc.nn.ci/docs/webdav)
Expand Down
3 changes: 2 additions & 1 deletion docs/_navbar.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* 文档版本 1.0.0
* 文档版本 1.0.1
* [1.0.1](https://spring-file-storage.xuyanwu.cn/1.0.1/)
* [1.0.0](https://spring-file-storage.xuyanwu.cn/1.0.0/)
* [0.7.0](https://spring-file-storage.xuyanwu.cn/0.7.0/)
* [0.6.1](https://spring-file-storage.xuyanwu.cn/0.6.1/)
Expand Down
2 changes: 1 addition & 1 deletion docs/快速入门.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<dependency>
<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>
```

Expand Down
5 changes: 5 additions & 0 deletions docs/更新记录.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 更新记录

## 1.0.1
2023-08-08
- 修复了 MultipartFileWrapperAdapter 无法正确获取文件名的问题
- 修复了缺少配置文件元数据的问题

## 1.0.0
2023-08-06

Expand Down
2 changes: 1 addition & 1 deletion docs/脱离SpringBoot单独使用.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<dependency>
<groupId>cn.xuyanwu</groupId>
<artifactId>file-storage-core</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions file-storage-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<artifactId>spring-file-storage-parent</artifactId>
<groupId>cn.xuyanwu</groupId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>file-storage-core</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage-parent</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<version>1.0.1</version>

<name>spring-file-storage-parent</name>
<description>A File Storage Service</description>
Expand Down Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>cn.xuyanwu</groupId>
<artifactId>file-storage-core</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>
<!-- Apache commons-pool2 -->
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions spring-file-storage-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage-test</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<name>spring-file-storage-test</name>
<description>spring-file-storage 的测试和演示模块</description>

Expand Down Expand Up @@ -145,7 +145,7 @@
<dependency>
<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>

<dependency>
Expand Down
8 changes: 7 additions & 1 deletion spring-file-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>spring-file-storage-parent</artifactId>
<groupId>cn.xuyanwu</groupId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -133,6 +133,12 @@
<artifactId>spring-boot-starter-web</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public FileWrapper getFileWrapper(Object source,String name,String contentType,L
return updateFileWrapper((MultipartFileWrapper) source,name,contentType,size);
} else {
MultipartFile file = (MultipartFile) source;
if (name == null) name = file.getName();
if (name == null) name = file.getOriginalFilename();
if (contentType == null) contentType = file.getContentType();
if (size == null) size = file.getSize();
return new MultipartFileWrapper(file,name,contentType,size);
Expand Down

0 comments on commit 9a7d054

Please sign in to comment.