Skip to content

Commit

Permalink
comments refine
Browse files Browse the repository at this point in the history
  • Loading branch information
rockuw committed Dec 9, 2015
1 parent 59a6bfc commit c2ef154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Common prefix让用户不需要遍历所有的object(可能数量巨大)而

1. callback的url**不能**包含query string,而应该在`:query`参数中指定
2. 可能出现文件上传成功,但是执行回调失败的情况,此时client会抛出
`CallbackError`,用户如果要忽略此错误,需要显示接住这个异常
`CallbackError`,用户如果要忽略此错误,需要显式接住这个异常
3. 详细的例子可以参考[callback.rb](examples/aliyun/oss/callback.rb)
4. 接受回调的server可以参考[callback_server.rb](rails/aliyun_oss_callback_server.rb)

Expand Down
4 changes: 2 additions & 2 deletions examples/aliyun/oss/callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

##
# 用户在上传文件时可以指定“上传回调”,这样在文件上传成功后OSS会向用户
# 提供的服务器地址发起一个HTTP POST请求,相当于一个异步的通知机制。用
# 户可以在收到回调的时候做相应的动作
# 提供的服务器地址发起一个HTTP POST请求,相当于一个通知机制。用户可以
# 在收到回调的时候做相应的动作
# 1. 如何接受OSS的回调可以参考代码目录下的
# rails/aliyun_oss_callback_server.rb
# 2. 只有put_object和resumable_upload支持上传回调
Expand Down

0 comments on commit c2ef154

Please sign in to comment.