Skip to content

Update put document #98

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/put.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ MagicVariables 求值示例:

## 自定义变量(xVariables)

自定义变量是七牛云存储提供的另一种信息交换机制,主要用于应用客户端和应用服务器之间的信息交换。可在 `returnBody` 和 `callbackBodk` 中使用。
自定义变量是七牛云存储提供的另一种信息交换机制,主要用于应用客户端和应用服务器之间的信息交换。可在 `returnBody` 和 `callbackBody` 中使用。

在重定向上传和回调上传中,七牛云存储帮助应用客户端将一些信息传递到服务端,减少两者之间的交互。服务端在构造 `returnBody` 和 `callbackBodk` 时,可以加入自定义变量。应用客户端则在上传请求中设定自定义变量的值。七牛云存储收到这些变量信息后,置换掉 `returnBody` 和 `callbackBodk` 中的自定义变量设置,形成最终的反馈结果。
在重定向上传和回调上传中,七牛云存储帮助应用客户端将一些信息传递到服务端,减少两者之间的交互。服务端在构造 `returnBody` 和 `callbackBody` 时,可以加入自定义变量。应用客户端则在上传请求中设定自定义变量的值。七牛云存储收到这些变量信息后,置换掉 `returnBody` 和 `callbackBody` 中的自定义变量设置,形成最终的反馈结果。

自定义变量的形式同魔法变量一样,只是变量名必须以 `x:` 开始。下面是一个自定义变量的案例:

Expand Down