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 11# Changelog
22
3+ ## 7.5.0 (2021-04-15)
4+
5+ ## 增加
6+ * 新增上传服务基础 api
7+ * 新增分片上传 v2 功能
8+
9+
310## 7.4.0 (2020-11-25)
411
512## 增加
Original file line number Diff line number Diff line change 1212<dependency >
1313 <groupId >com.qiniu</groupId >
1414 <artifactId >qiniu-java-sdk</artifactId >
15- <version >[7.4 .0, 7.4 .99]</version >
15+ <version >[7.5 .0, 7.5 .99]</version >
1616</dependency >
1717```
1818或者 Gradle:
1919``` groovy
20- compile 'com.qiniu:qiniu-java-sdk:7.4 .+'
20+ compile 'com.qiniu:qiniu-java-sdk:7.5 .+'
2121```
2222
2323## 运行环境
@@ -33,11 +33,20 @@ import com.qiniu.util.Auth;
3333import com.qiniu.storage.Configuration ;
3434import com.qiniu.http.Response ;
3535...
36+ // 分片上传 v1
3637 Configuration cfg = new Configuration ();
3738 UploadManager uploadManager = new UploadManager (cfg);
3839 Auth auth = Auth . create(accessKey, secretKey);
3940 String token = auth. uploadToken(bucketName);
4041 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);
4150...
4251```
4352
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public final class Constants {
99 /**
1010 * 版本号
1111 */
12- public static final String VERSION = "7.4 .0" ;
12+ public static final String VERSION = "7.5 .0" ;
1313 /**
1414 * 块大小,不能改变
1515 */
You can’t perform that action at this time.
0 commit comments