Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 UploadManager 类上传文件时,必须传 Configuration #393

Open
rufeng2015 opened this issue Jan 2, 2019 · 6 comments
Open
Labels
documentation Improvements or additions to documentation.

Comments

@rufeng2015
Copy link

你好,md上 直接声明 UploadManager 就可以使用该类,但是方法里必须传入参数 Configuration,造成项目无法启动, 测试过7.2.11 和7.2.18 ,7.1.x以下版本可以正常使用
建议:
要么更新下 MD 文档,要么请给该方法一个覆写方法,

@zhangmrit
Copy link

+1

@zhangmrit
Copy link

你好,md上 直接声明 UploadManager 就可以使用该类,但是方法里必须传入参数 Configuration,造成项目无法启动, 测试过7.2.11 和7.2.18 ,7.1.x以下版本可以正常使用
建议:
要么更新下 MD 文档,要么请给该方法一个覆写方法,

example也没更新,有点不该,太敷衍了

@zhangmrit
Copy link

看了源码可以这么写

new UploadManager(new Configuration(Region.autoRegion()));

@forrest-mao forrest-mao added the documentation Improvements or additions to documentation. label Jul 21, 2020
@forrest-mao
Copy link

抱歉,文档我们来更正下,demo 可以参考 https://github.com/qiniu/java-sdk/blob/master/examples/UploadBySelfDefiningDomain.java 这里的 demo,其他的 demo 我们也来做下更新

@forrest-mao
Copy link

仅七牛内部员工可见:https://jira.qiniu.io/browse/TS-984

@peteryuanpan
Copy link
Contributor

pr:#488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation.
Projects
None yet
Development

No branches or pull requests

4 participants