From a3a98deca7c3bcacb73566d7be59d6f923977052 Mon Sep 17 00:00:00 2001 From: helloEson Date: Mon, 13 Oct 2014 10:07:17 +0800 Subject: [PATCH] fix policy.insertOnly --- qiniu/rs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;