window server 2012下执行qrsync,报"error":"incorrect zone, please use up-z1.qiniu.com",请问是怎么回事?
window server 2012下执行qrsync,报"error":"incorrect zone, please use up-z1.qiniu.com",请问是怎么回事?
//————http上传,指定zone的具体区域——
//Zone.zone0:华东
//Zone.zone1:华北
//Zone.zone2:华南
//Zone.zoneNa0:北美
//———http上传,自动识别上传区域——
//Zone.httpAutoZone
//———https上传,自动识别上传区域——
//Zone.httpsAutoZone
Configuration config = new Configuration.Builder()
.chunkSize(256 * 1024) //分片上传时,每片的大小。 默认256K
.putThreshhold(512 * 1024) // 启用分片上传阀值。默认512K
.connectTimeout(10) // 链接超时。默认10秒
.responseTimeout(60) // 服务器响应超时。默认60秒
.recorder(null) // recorder分片上传时,已上传片记录器。默认null
.recorder(null, null) // keyGen 分片上传时,生成标识符,用于片记录器区分是那个文件的上传记录
.zone(Zone.zone2) // 设置区域,指定不同区域的上传域名、备用域名、备用IP。
.build();
this.uploadManager = new UploadManager(config);
你的空间是否是华北地区的空间,华北地区的空间需要使用up-z1.qiniu.com上传域名,建议你使用qshell qupload方法上传,可以指定上传域名
http://developer.qiniu.com/code/v6/tool/qshell.html