Commit Graph

27 Commits

Author SHA1 Message Date
longjuan
21b752dd25 feat: check the file already exists before uploading (#11)
Fixes https://github.com/halo-dev/halo/issues/2945
```release-note
Add file check with the same name when uploading
```

我这里使用了ConcurrentHashMap避免**同时**上传两个同名文件导致文件覆盖问题,在本地存储策略中是由操作系统保证的
不知道这样是不是一个好方法

S3AsyncClient中没有`doesObjectExist`类似的方法,官方的文档也让用`headObject`捕获异常的办法来判断文件是否存在,详见https://github.com/aws/aws-sdk-java-v2/blob/master/docs/LaunchChangelog.md 中搜索`doesObjectExist`
2023-01-28 06:40:10 +00:00
longjuan
b5c2c50654 feat: add access style options to support minio binding domain names (#13)
Fixes https://github.com/halo-sigs/plugin-s3/issues/12

![image](https://user-images.githubusercontent.com/28662535/213078807-b4f7c877-0e83-4a0f-a87b-871c7a3c73dc.png)
![image](https://user-images.githubusercontent.com/28662535/213078827-b0cd7e93-04af-4f3e-988b-e03db3beb85a.png)

```release-note
add access style options to support minio binding domain names
```

⚠️在发布新版本前在README里增加兼容访问风格相关说明
![image](https://user-images.githubusercontent.com/28662535/213079553-9781c489-b969-4e8f-849e-01f2168f2569.png)
2023-01-28 03:40:09 +00:00
longjuan
1158ea7ae8 perf: Use async client and multipart upload to avoid out of memory (#7)
Fixes https://github.com/halo-sigs/plugin-s3/issues/6
```release-note
Use async client and multipart upload to avoid out of memory
```
2023-01-09 09:48:39 +00:00
longjuan
11087a9915 fix: EndpointProtocol setting item does not take effect (#10)
Fixes https://github.com/halo-sigs/plugin-s3/issues/9
```release-note
fix endpointProtocol setting item does not take effect
```
2023-01-07 09:56:36 +00:00
longjuan
bf3b11b842 Bump version to 1.2.0 (#3)
```release-note
None
```
2022-12-23 04:00:29 +00:00
Ryan Wang
3724a68b87 chore: rename to plugin-s3 (#1) 2022-12-23 11:30:43 +08:00
longjuan
c2e747ab15 extraction public tool 2022-12-21 16:04:27 +08:00
longjuan
5da0fae2b4 Adjust Formatting 2022-12-19 21:51:42 +08:00
longjuan
79c94a29a9 Upgrade version to 1.1.1 2022-12-19 21:41:08 +08:00
longjuan
e9e9b327fe add endpoint protocol help tips 2022-12-19 21:40:55 +08:00
longjuan
dc49669b71 delete the unimplemented function of restriction extensions 2022-12-19 21:30:52 +08:00
longjuan
c7e4c91932 fix: MediaType is always application/octet stream 2022-12-19 21:26:47 +08:00
longjuan
301632bf88 Upgrade version to 1.1.0 2022-12-17 11:18:15 +08:00
longjuan
1b35103c85 add Endpoint access protocol selection 2022-12-17 11:12:20 +08:00
longjuan
69c48810c7 handle the case of domain=null 2022-12-17 00:19:32 +08:00
longjuan
1258436608 Change policy display name 2022-12-16 13:43:58 +08:00
longjuan
2808db4876 Complete S3 protocol adaptation 2022-12-16 13:36:18 +08:00
guqing
535643d14e refactor; policy template initialize 2022-12-01 13:57:41 +08:00
guqing
9732cd5f82 refactor: adapt to halo 2.0 2022-12-01 13:48:12 +08:00
Ryan Wang
781a010a8f refactor: plugin author field 2022-11-30 22:41:02 +08:00
Ryan Wang
fccf4b84c2 chore: release 1.0.0-alpha.2 2022-10-26 17:00:38 +08:00
Ryan Wang
73b5f0c1f8 chore: bump dependencies 2022-10-26 14:27:13 +08:00
Ryan Wang
eb5d6fa05a refactor: structure of the setting spec (#4) 2022-09-22 16:45:10 +08:00
John Niang
fb9ed250ff Implement AttachmentHandler using AliOSS SDK (#2) 2022-09-05 10:31:47 +08:00
Ryan Wang
fac8733697 feat: update logo and description
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-03 16:06:05 +08:00
Ryan Wang
d0ba22fa64 chore: code cleanup
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-29 11:37:32 +08:00
Ryan Wang
02e878c64d Initial commit 2022-08-29 11:22:49 +08:00