File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ public class UploadFile {
217
217
[ uptoken] ( http://docs.qiniu.com/api/put.html#uploadToken ) 实际上是用 AccessKey/SecretKey 进行数字签名的上传策略(` rs.PutPolicy ` ),它控制则整个上传流程的行为。让我们快速过一遍你都能够决策啥:
218
218
219
219
* ` expires ` 指定 [ uptoken] ( http://docs.qiniu.com/api/put.html#uploadToken ) 有效期(默认1小时)。一个 [ uptoken] ( http://docs.qiniu.com/api/put.html#uploadToken ) 可以被用于多次上传(只要它还没有过期)。
220
- * ` scope ` 限定客户端的权限。如果 ` scope ` 是 bucket,则客户端只能新增文件到指定的 bucket,不能修改文件。如果 ` scope ` 为 bucket: key ,则客户端可以修改指定的文件。
220
+ * ` scope ` 限定客户端的权限。如果 ` scope ` 是 bucket,则客户端只能新增文件到指定的 bucket,不能修改文件。如果 ` scope ` 为 bucket: key ,则客户端可以修改指定的文件。** 注意: key必须采用utf8编码,如使用非utf8编码访问七牛云存储将反馈错误 **
221
221
* ` callbackUrl ` 设定业务服务器的回调地址,这样业务服务器才能感知到上传行为的发生。可选。
222
222
* ` asyncOps ` 可指定上传完成后,需要自动执行哪些数据处理。这是因为有些数据处理操作(比如音视频转码)比较慢,如果不进行预转可能第一次访问的时候效果不理想,预转可以很大程度改善这一点。
223
223
* ` returnBody ` 可调整返回给客户端的数据包(默认情况下七牛返回文件内容的 ` hash ` ,也就是下载该文件时的 ` etag ` )。这只在没有 ` CallbackUrl ` 时有效。
@@ -244,6 +244,8 @@ public class UploadFile {
244
244
245
245
其中<domain >可以到[ 七牛云存储开发者自助网站] ( https://portal.qiniu.com ) 绑定, 域名可以使用自己一级域名的或者是由七牛提供的二级域名(` <bucket>.qiniudn.com ` )。注意,尖括号不是必需,代表替换项。
246
246
247
+ ** 注意: key必须采用utf8编码,如使用非utf8编码访问七牛云存储将反馈错误**
248
+
247
249
<a name =" private-download " ></a >
248
250
249
251
### 3.8 私有资源下载
You can’t perform that action at this time.
0 commit comments