diff --git a/qiniu/rs.php b/qiniu/rs.php index d65c7b6d..443ca377 100644 --- a/qiniu/rs.php +++ b/qiniu/rs.php @@ -91,8 +91,8 @@ public function Token($mac) // => $token if (!empty($this->EndUser)) { $policy['endUser'] = $this->EndUser; } - if (!empty($this->InsertOnly)) { - $policy['exclusive'] = $this->InsertOnly; + if (isset($this->InsertOnly)) { + $policy['insertOnly'] = $this->InsertOnly; } if (!empty($this->DetectMime)) { $policy['detectMime'] = $this->DetectMime;