date('Y-m-d', strtotime('+1 day')) . "T12:00:00.000Z", "conditions" => array(array("content-length-range", 0, 1048576000)))); $str = base64_encode($str); $data['AccessKeyId'] = IN_ALIYUNOSS_AKI; $data['domain'] = (is_ssl() ? 'https://' : 'http://') . IN_ALIYUNOSS_BK . '.' . IN_ALIYUNOSS_EP; $data['policy'] = $str; $data['signature'] = base64_encode(hash_hmac("sha1", $str, IN_ALIYUNOSS_AKS, true)); reJSON($data); } }