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 @@ -252,7 +252,7 @@ SDK源码地址:<https://github.com/qiniu/php-sdk/tags>
252252 public $Expires; // 可选。默认是 3600 秒
253253 }
254254
255- * ` scope ` 限定客户端的权限。如果 ` scope ` 是 bucket,则客户端只能新增文件到指定的 bucket,不能修改文件。如果 ` scope ` 为 bucket: key ,则客户端可以修改指定的文件。
255+ * ` scope ` 限定客户端的权限。如果 ` scope ` 是 bucket,则客户端只能新增文件到指定的 bucket,不能修改文件。如果 ` scope ` 为 bucket: key ,则客户端可以修改指定的文件。** 注意: key必须采用utf8编码,如使用非utf8编码访问七牛云存储将反馈错误 **
256256* ` callbackUrl ` 设定业务服务器的回调地址,这样业务服务器才能感知到上传行为的发生。
257257* ` callbackBody ` 设定业务服务器的回调信息。文件上传成功后,七牛向业务服务器的callbackUrl发送的POST请求携带的数据。支持 [ 魔法变量] ( http://docs.qiniu.com/api/put.html#MagicVariables ) 和 [ 自定义变量] ( http://docs.qiniu.com/api/put.html#xVariables ) 。
258258* ` returnUrl ` 设置用于浏览器端文件上传成功后,浏览器执行301跳转的URL,一般为 HTML Form 上传时使用。文件上传成功后浏览器会自动跳转到 ` returnUrl?upload_ret=returnBody ` 。
@@ -285,6 +285,8 @@ SDK源码地址:<https://github.com/qiniu/php-sdk/tags>
285285
286286其中<domain >可以到[ 七牛云存储开发者自助网站] ( https://portal.qiniu.com/ ) 绑定, 域名可以使用自己一级域名的或者是由七牛提供的二级域名(` <bucket>.qiniudn.com ` )。注意,尖括号不是必需,代表替换项。
287287
288+ ** 注意: key必须采用utf8编码,如使用非utf8编码访问七牛云存储将反馈错误**
289+
288290<a name =private-download ></a >
289291#### 2.2 私有资源下载
290292私有资源必须通过临时下载授权凭证(downloadToken)下载,如下:
You can’t perform that action at this time.
0 commit comments