File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
src/main/java/com/qiniu/common Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 7.5.0 (2021-04-15)
4
+
5
+ ## 增加
6
+ * 新增上传服务基础 api
7
+ * 新增分片上传 v2 功能
8
+
9
+
3
10
## 7.4.0 (2020-11-25)
4
11
5
12
## 增加
Original file line number Diff line number Diff line change 12
12
<dependency >
13
13
<groupId >com.qiniu</groupId >
14
14
<artifactId >qiniu-java-sdk</artifactId >
15
- <version >[7.4 .0, 7.4 .99]</version >
15
+ <version >[7.5 .0, 7.5 .99]</version >
16
16
</dependency >
17
17
```
18
18
或者 Gradle:
19
19
``` groovy
20
- compile 'com.qiniu:qiniu-java-sdk:7.4 .+'
20
+ compile 'com.qiniu:qiniu-java-sdk:7.5 .+'
21
21
```
22
22
23
23
## 运行环境
@@ -33,11 +33,20 @@ import com.qiniu.util.Auth;
33
33
import com.qiniu.storage.Configuration ;
34
34
import com.qiniu.http.Response ;
35
35
...
36
+ // 分片上传 v1
36
37
Configuration cfg = new Configuration ();
37
38
UploadManager uploadManager = new UploadManager (cfg);
38
39
Auth auth = Auth . create(accessKey, secretKey);
39
40
String token = auth. uploadToken(bucketName);
40
41
Response r = upManager. put(" hello world" . getBytes(), " yourkey" , token);
42
+
43
+ // 分片上传 v2
44
+ Configuration cfg = new Configuration ();
45
+ cfg. resumableUploadAPIVersion = Configuration . ResumableUploadAPIVersion . V2 ;
46
+ UploadManager uploadManager = new UploadManager (cfg);
47
+ Auth auth = Auth . create(accessKey, secretKey);
48
+ String token = auth. uploadToken(bucketName);
49
+ Response r = upManager. put(" hello world" . getBytes(), " yourkey" , token);
41
50
...
42
51
```
43
52
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public final class Constants {
9
9
/**
10
10
* 版本号
11
11
*/
12
- public static final String VERSION = "7.4 .0" ;
12
+ public static final String VERSION = "7.5 .0" ;
13
13
/**
14
14
* 块大小,不能改变
15
15
*/
You can’t perform that action at this time.
0 commit comments